mirror of
https://github.com/inspec/inspec
synced 2024-11-30 08:30:39 +00:00
update failure message for cmp
matcher
This commit is contained in:
parent
53728ee03a
commit
31f8863701
1 changed files with 2 additions and 2 deletions
|
@ -252,10 +252,10 @@ RSpec::Matchers.define :cmp do |expected|
|
||||||
end
|
end
|
||||||
|
|
||||||
failure_message do |actual|
|
failure_message do |actual|
|
||||||
"\nexpected: #{expected}\n got: #{actual}\n\n(compared using .casecmp?)\n"
|
"\nexpected: #{expected}\n got: #{actual}\n\n(compared using `cmp` matcher)\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
failure_message_when_negated do |actual|
|
failure_message_when_negated do |actual|
|
||||||
"\nexpected: value != #{expected}\n got: #{actual}\n\n(compared using .casecmp?)\n"
|
"\nexpected: value != #{expected}\n got: #{actual}\n\n(compared using `cmp` matcher)\n"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue