Skip to content

Commit

Permalink
Attempting to fix bug in validate_with failure messages. Should reall…
Browse files Browse the repository at this point in the history
…y just spec it now
  • Loading branch information
rdh committed Jul 30, 2017
1 parent 81ec2d7 commit d097f88
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/spec_cat/matchers/validate_with.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ def options_matching?
end

failure_message do
"expected to validate with #{validator}#{@options.present? ? (' with options ' + @options) : ''}"
"expected to validate with #{@validator}#{@options.present? ? (' with options ' + @options) : ''}"
end

failure_message_when_negated do
"do not expected to validate with #{validator}#{@options.present? ? (' with options ' + @options) : ''}"
"do not expected to validate with #{@validator}#{@options.present? ? (' with options ' + @options) : ''}"
end
end

0 comments on commit d097f88

Please sign in to comment.