lib/dm/matchers/validate_format_of.rb in dm-rspec-0.2.4 vs lib/dm/matchers/validate_format_of.rb in dm-rspec-0.3.0
- old
+ new
@@ -28,10 +28,10 @@
msg = "expected to validate #{@validation_subject} of #{@property} with #{@format.inspect}"
msg = %Q'#{msg} and message "#{@msg}"' if @msg
msg
end
- def negative_failure_message
+ def failure_message_when_negated
msg = "expected to not validate #{@validation_subject} of #{@property} with #{@format.inspect}"
msg = %Q'#{msg} and message "#{@msg}"' if @msg
msg
end
end