Permalink
Browse files

update simple_matcher to new protocol

  • Loading branch information...
1 parent c6e867e commit 7189fd7faa9798c66b91006107ef8f8c0855c47b @dchelimsky committed Apr 2, 2009
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/spec/matchers/simple_matcher.rb
@@ -23,11 +23,11 @@ def description
@description || explanation
end
- def failure_message
+ def failure_message_for_should
@failure_message || (@description.nil? ? explanation : %[expected #{@description.inspect} but got #{@given.inspect}])
end
- def negative_failure_message
+ def failure_message_for_should_not
@negative_failure_message || (@description.nil? ? explanation : %[expected not to get #{@description.inspect}, but got #{@given.inspect}])
end

0 comments on commit 7189fd7

Please sign in to comment.