1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/minitest/mock.rb: Remove unused variable warnings.

Patch by Run Paint [ruby-core:30991]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2010-11-08 20:57:56 +00:00
parent e640e1c565
commit 64167ddda8

View file

@ -14,7 +14,7 @@ module MiniTest
end
def expect(name, retval, args=[])
n, r, a = name, retval, args # for the closure below
n, r = name, retval # for the closure below
@expected_calls[name] = { :retval => retval, :args => args }
self.class.__send__ :remove_method, name if respond_to? name
self.class.__send__(:define_method, name) { |*x|