1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
This commit is contained in:
Benoit Daloze 2020-11-27 14:55:29 +01:00
parent 039ba387aa
commit f0bfa266d7
2 changed files with 3 additions and 3 deletions
spec/mspec/lib/mspec
matchers
mocks

View file

@ -15,11 +15,11 @@ class IncludeMatcher
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

View file

@ -180,7 +180,7 @@ module Mock
mock_respond_to? obj, *args
else
SpecExpectation.fail_with("Mock '#{name_or_inspect obj}': method #{sym}\n",
"called with unexpected arguments #{inspect_args compare}")
"called with unexpected arguments #{inspect_args args}")
end
end