fix cmp code description

This commit is contained in:
Alex Pop 2016-10-05 19:48:39 +01:00 committed by Dominik Richter
parent 6719cf544d
commit de58a2588d

View file

@ -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