Method: Cukedep::HookDSL#before_cuke
- Defined in:
- lib/cukedep/hook-dsl.rb
#before_cuke(aScope, &aBlock) ⇒ Object
This method registers the code block to execute before a Cucumber invocation.
18 19 20 21 22 |
# File 'lib/cukedep/hook-dsl.rb', line 18 def before_cuke(aScope, &aBlock) kind = :before scope = validated_scope(kind, aScope) register_hook(kind, scope, aBlock) if block_given? end |