class Cucumber::Filters::FireBeforeAllHooks
Executes all BeforeAll hooks and ONLY if they were all successful pass on all the โTestCase` objects down the filter chain
Public Class Methods
Source
# File lib/cucumber/filters/fire_before_all_hooks.rb, line 8 def initialize(support_code, receiver = nil) super @support_code = support_code @test_cases = [] end
Calls superclass method
Public Instance Methods
Source
# File lib/cucumber/filters/fire_before_all_hooks.rb, line 19 def done if fire_before_all_hook @test_cases.map do |test_case| test_case.describe_to(@receiver) end end receiver.done self end
Source
# File lib/cucumber/filters/fire_before_all_hooks.rb, line 14 def test_case(test_case) @test_cases << test_case self end
Private Instance Methods
Source
# File lib/cucumber/filters/fire_before_all_hooks.rb, line 31 def fire_before_all_hook @support_code.fire_hook(:before_all) end