mirror of
https://github.com/inspec/inspec
synced 2024-11-10 07:04:15 +00:00
fix cmp code description
This commit is contained in:
parent
6719cf544d
commit
de58a2588d
1 changed files with 4 additions and 0 deletions
|
@ -313,6 +313,10 @@ RSpec::Matchers.define :cmp do |first_expected|
|
|||
actual = '0' + actual.to_s(8) if octal?(@expected)
|
||||
"\n" + format_expectation(true) + "\n got: #{actual}\n\n(compared using `cmp` matcher)\n"
|
||||
end
|
||||
|
||||
description do
|
||||
"cmp #{@operation} #{@expected.inspect}"
|
||||
end
|
||||
end
|
||||
|
||||
# user resource matcher for serverspec compatibility
|
||||
|
|
Loading…
Reference in a new issue