1
0
Fork 0
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:
Konstantin Haase 2011-04-17 10:33:42 +02:00
parent 7e1449a4ea
commit fd5113a687

View file

@ -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