Update to ruby/mspec@b58e665
This commit is contained in:
parent
039ba387aa
commit
f0bfa266d7
@ -15,11 +15,11 @@ class IncludeMatcher
|
|||||||
end
|
end
|
||||||
|
|
||||||
def failure_message
|
def failure_message
|
||||||
["Expected #{@actual.inspect}", "to include #{@element.inspect}"]
|
["Expected #{MSpec.format(@actual)}", "to include #{MSpec.format(@element)}"]
|
||||||
end
|
end
|
||||||
|
|
||||||
def negative_failure_message
|
def negative_failure_message
|
||||||
["Expected #{@actual.inspect}", "not to include #{@element.inspect}"]
|
["Expected #{MSpec.format(@actual)}", "not to include #{MSpec.format(@element)}"]
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -180,7 +180,7 @@ module Mock
|
|||||||
mock_respond_to? obj, *args
|
mock_respond_to? obj, *args
|
||||||
else
|
else
|
||||||
SpecExpectation.fail_with("Mock '#{name_or_inspect obj}': method #{sym}\n",
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user