lib/matchers/validations/format_of.rb in mongoid-minitest-0.0.1 vs lib/matchers/validations/format_of.rb in mongoid-minitest-0.0.2
- old
+ new
@@ -14,11 +14,11 @@
def to_not_allow(invalid_value)
@invalid = invalid_value
self
end
- def matches?(klass)
- return false unless @result = super(klass)
+ def matches?(subject)
+ return false unless @result = super(subject)
check_valid_value if @valid
check_invalid_value if @invalid
@result