mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/mspec@b58e665
This commit is contained in:
parent
039ba387aa
commit
f0bfa266d7
2 changed files with 3 additions and 3 deletions
spec/mspec/lib/mspec
|
@ -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…
Add table
Reference in a new issue