Skip to content

Commit

Permalink
Use MSpec.format for the include matcher
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Nov 27, 2020
1 parent d2dd9ba commit b58e665
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mspec/matchers/include.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def matches?(actual)
end

def failure_message
["Expected #{@actual.inspect}", "to include #{@element.inspect}"]
["Expected #{MSpec.format(@actual)}", "to include #{MSpec.format(@element)}"]
end

def negative_failure_message
["Expected #{@actual.inspect}", "not to include #{@element.inspect}"]
["Expected #{MSpec.format(@actual)}", "not to include #{MSpec.format(@element)}"]
end
end

Expand Down

0 comments on commit b58e665

Please sign in to comment.