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