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:
parent
e640e1c565
commit
64167ddda8
1 changed files with 1 additions and 1 deletions
|
@ -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|
|
||||
|
|
Loading…
Add table
Reference in a new issue