Skip to content

Commit d2dd9ba

Browse files
committed
Show the passed arguments in mock error message
1 parent f8b0618 commit d2dd9ba

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/mspec/mocks/mock.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def self.verify_call(obj, sym, *args, &block)
180180
mock_respond_to? obj, *args
181181
else
182182
SpecExpectation.fail_with("Mock '#{name_or_inspect obj}': method #{sym}\n",
183-
"called with unexpected arguments #{inspect_args compare}")
183+
"called with unexpected arguments #{inspect_args args}")
184184
end
185185
end
186186

0 commit comments

Comments
 (0)