Update to ruby/mspec@b58e665
This commit is contained in:
parent
039ba387aa
commit
f0bfa266d7
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user