1
0
Fork 0
mirror of https://github.com/thoughtbot/shoulda-matchers.git synced 2022-11-09 12:01:38 -05:00

remove a redundancy inside AllowValueMatcher

This commit is contained in:
Frank Luithle 2010-09-05 17:24:55 +02:00 committed by Gabe Berke-Williams
parent 026927b324
commit c86d8e2e0c

View file

@ -79,7 +79,6 @@ module Shoulda # :nodoc:
def errors_match_regexp?
if Regexp === @expected_message
@matched_error = @errors.detect { |e| e =~ @expected_message }
!@matched_error.nil?
else
false
end