Mocha's error messages suck
on February 26, 2008 @ 08:04 PM
Mocha’s parameter matching error messages suck.
When writing a failing test similar to the below snippet I am given the error message “undefined method `keys’ for :no_args:Symbol”
@user.should_not_receive(:update_attributes).with(has_key('name')) |
I love Mocha’s parameter matching, but what kind of error message is that?
This is not the first time I’ve gawked at Mocha’s error messages, but this time just did it for me. My pair didn’t know if we should ping or if we had broken our app.


1 comment
Jump to comment form | comments rss [?]