Class: Cucumber::Runtime::BeforeHooks
- Inherits:
-
Object
- Object
- Cucumber::Runtime::BeforeHooks
- Defined in:
- lib/cucumber/runtime/before_hooks.rb
Instance Method Summary collapse
- #apply_to(test_case) ⇒ Object
-
#initialize(id_generator, hooks, scenario, event_bus) ⇒ BeforeHooks
constructor
A new instance of BeforeHooks.
Constructor Details
#initialize(id_generator, hooks, scenario, event_bus) ⇒ BeforeHooks
Returns a new instance of BeforeHooks.
8 9 10 11 12 13 |
# File 'lib/cucumber/runtime/before_hooks.rb', line 8 def initialize(id_generator, hooks, scenario, event_bus) @hooks = hooks @scenario = scenario @id_generator = id_generator @event_bus = event_bus end |
Instance Method Details
#apply_to(test_case) ⇒ Object
15 16 17 18 19 |
# File 'lib/cucumber/runtime/before_hooks.rb', line 15 def apply_to(test_case) test_case.with_steps( before_hooks + test_case.test_steps ) end |