diff options
-rw-r--r-- | spec/mspec/lib/mspec/mocks/mock.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mspec/lib/mspec/mocks/mock.rb b/spec/mspec/lib/mspec/mocks/mock.rb index f833cba371..b11d469186 100644 --- a/spec/mspec/lib/mspec/mocks/mock.rb +++ b/spec/mspec/lib/mspec/mocks/mock.rb @@ -163,7 +163,7 @@ module Mock end if sym.to_sym == :respond_to? - mock_respond_to? obj, compare + mock_respond_to? obj, *args else SpecExpectation.fail_with("Mock '#{name_or_inspect obj}': method #{sym}\n", "called with unexpected arguments (#{Array(compare).join(' ')})") |