Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use #none? instead of inverting #all?

  • Loading branch information...
commit c10cf343aef3b3aca6c001b390708e1c3d3caa05 1 parent 31b140f
@gabebw gabebw authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/shoulda/matchers/active_model/allow_value_matcher.rb
View
4 lib/shoulda/matchers/active_model/allow_value_matcher.rb
@@ -43,10 +43,10 @@ def with_message(message)
def matches?(instance)
@instance = instance
- @values_to_match.all? do |value|
+ @values_to_match.none? do |value|
@value = value
@instance.send("#{@attribute}=", @value)
- ! errors_match?
+ errors_match?
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.