mirror of
https://github.com/ditkrg/validates_timeliness.git
synced 2026-01-23 06:16:44 +00:00
removed a debug hint in matcher
This commit is contained in:
parent
d0e60ece92
commit
d847d3b95a
@ -80,7 +80,7 @@ module Spec
|
|||||||
record.valid?
|
record.valid?
|
||||||
errors = record.errors.on(expected)
|
errors = record.errors.on(expected)
|
||||||
pass = [ errors ].flatten.any? {|error| match === error }
|
pass = [ errors ].flatten.any? {|error| match === error }
|
||||||
@last_failure = "error matching #{match.inspect} when value is #{format_value(value)} #{errors.inspect}" unless pass
|
@last_failure = "error matching #{match.inspect} when value is #{format_value(value)}" unless pass
|
||||||
pass
|
pass
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user