# File test-unit-3.3.4/lib/test/unit/fixture.rb, line 25 def initialize(test_case) @test_case = test_case @setup = HookPoint.new(@test_case, :setup, :after => :append) @cleanup = HookPoint.new(@test_case, :cleanup, :before => :prepend) @teardown = HookPoint.new(@test_case, :teardown, :before => :prepend) @cached_before_callbacks = {} @cached_after_callbacks = {} end
# File test-unit-3.3.4/lib/test/unit/fixture.rb, line 34 def [](type) case type when :setup @setup when :cleanup @cleanup when :teardown @teardown end end