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
1 changed files with 0 additions and 7 deletions

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