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:
parent
026927b324
commit
c86d8e2e0c
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue