mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
dummy methods no longer needed in delegator tests
This commit is contained in:
parent
7e1449a4ea
commit
fd5113a687
1 changed files with 0 additions and 7 deletions
|
@ -1,13 +1,6 @@
|
|||
class DelegatorTest < Test::Unit::TestCase
|
||||
class Mirror
|
||||
attr_reader :last_call
|
||||
|
||||
Sinatra::Delegator.private_instance_methods.each do |method|
|
||||
define_method(method) do |*a, &b|
|
||||
method_missing(method, *a, &b)
|
||||
end
|
||||
end
|
||||
|
||||
def method_missing(*a, &b)
|
||||
@last_call = [*a.map(&:to_s)]
|
||||
@last_call << b if b
|
||||
|
|
Loading…
Reference in a new issue