Permalink
Browse files

Use Kernel#inspect instead of #to_s

Kernel#inspect does not call #to_s anymore, on Ruby2.0.0
  • Loading branch information...
1 parent 17daf44 commit 394c14aa4332d67357593f43785a1b6410561144 @sanemat sanemat committed Dec 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 spec/rspec/mocks/partial_mock_spec.rb
@@ -94,7 +94,7 @@ module Mocks
it "includes the class name in the error when mocking a class method that is called an extra time with the wrong args" do
klass = Class.new do
- def self.to_s
+ def self.inspect
"MyClass"
end
end

0 comments on commit 394c14a

Please sign in to comment.