mirror of
https://github.com/inspec/inspec
synced 2024-11-26 22:50:36 +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
|
||||
|
||||
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
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue