Skip to content

Commit

Permalink
Switched to size from length.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnunemaker authored and mcmire committed Feb 7, 2010
1 parent ca329ee commit 1d7c072
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rdoc
Expand Up @@ -107,7 +107,7 @@ Hate writing assertions? Need a little behavior-driven love in your tests? Then
custom_matcher :have do |receiver, matcher, args|
count = args[0]
something = matcher.chained_messages[0].name
actual = receiver.send(something).length
actual = receiver.send(something).size
matcher.positive_failure_message = "Expected #{receiver} to have #{actual} #{something}, but found #{count} "
actual == count
end
Expand Down
2 changes: 1 addition & 1 deletion test/test_custom_matcher.rb
Expand Up @@ -123,7 +123,7 @@ def test_matcher_with_chained_messages
custom_matcher :have do |receiver, matcher, args|
count = args[0]
something = matcher.chained_messages[0].name
actual = receiver.send(something).length
actual = receiver.send(something).size
matcher.positive_failure_message = "Expected #{receiver} to have #{actual} #{something}, but found #{count} "
actual == count
end
Expand Down

0 comments on commit 1d7c072

Please sign in to comment.