From 4a4255772d47c2c8dc8d714bd77f1c3d36cb5eec Mon Sep 17 00:00:00 2001 From: Elliot Winkler Date: Sat, 15 Sep 2018 15:34:09 -0600 Subject: [PATCH] Revert "Fix Zeus (this is addressed by other commits)" This reverts commit c600c61c9b8cbbef51f8a077607baafc4691e21f. --- .../matchers/active_model/validate_inclusion_of_matcher.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb index 8691de9a..60c3a3b5 100644 --- a/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb +++ b/lib/shoulda/matchers/active_model/validate_inclusion_of_matcher.rb @@ -496,7 +496,7 @@ EOT end end - values_outside_of_array.all? do |value| + values_outside_of_array.any? do |value| allows_value_of(value, @low_message) end end @@ -517,8 +517,8 @@ EOT end end - values_outside_of_array.none? do |value| - allows_value_of(value, @low_message) + values_outside_of_array.all? do |value| + disallows_value_of(value, @low_message) end end