Skip to content

Commit

Permalink
Another test fix for validate_with matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
rdh committed Jul 30, 2017
1 parent 816090a commit 59c15b2
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 #{expected_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 #{expected_validator}#{@options.present? ? (' with options ' + @options) : ''}"
end
end

0 comments on commit 59c15b2

Please sign in to comment.