Skip to content

Commit

Permalink
fix cmp code description
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpop committed Oct 5, 2016
1 parent 29d5c64 commit 0130bb7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/matchers/matchers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,10 @@ def format_expectation(negate)
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
res = "cmp #{@operation} #{@expected.inspect}"
end
end

# user resource matcher for serverspec compatibility
Expand Down

0 comments on commit 0130bb7

Please sign in to comment.