lib/matchers/validations/inclusion.rb in mongoid-minitest-0.0.3.1 vs lib/matchers/validations/inclusion.rb in mongoid-minitest-0.1.0
- old
+ new
@@ -15,18 +15,18 @@
return false unless result = super(subject)
if @allowed_values
not_allowed_values = @allowed_values - @validator.options[:in].to_a
if not_allowed_values.empty?
- @positive_message << " allowing all values mentioned"
+ @positive_message << ' allowing all values mentioned'
else
- @negative_message << " not allowing the following the values:"
+ @negative_message << ' not allowing the following the values:'
@negative_message << " #{not_allowed_values.inspect}"
result = false
end
end
-
- result
+
+ result
end
def description
if @allowed_values
super << " allowing the values: #{to_sentence(@allowed_values)}"