Module: Kernel
- Defined in:
- lib/gauge.rb
Instance Method Summary collapse
-
#after_scenario(options, &block) ⇒ Object
Invoked after execution of every scenario.
-
#after_spec(options, &block) ⇒ Object
Invoked after execution of every specification.
-
#after_step(options, &block) ⇒ Object
Invoked after execution of every step.
-
#after_suite(&block) ⇒ Object
Invoked after execution of the entire suite.
-
#before_scenario(options, &block) ⇒ Object
Invoked before execution of every scenario.
-
#before_spec(options, &block) ⇒ Object
Invoked before execution of every specification.
-
#before_step(options, &block) ⇒ Object
Invoked before execution of every step.
-
#before_suite(&block) ⇒ Object
Invoked before execution of the entire suite.
-
#step(*step_texts, &block) ⇒ Object
Specify implementation for a given step.
Instance Method Details
#after_scenario(options, &block) ⇒ Object
Invoked after execution of every scenario.
114 |
# File 'lib/gauge.rb', line 114 tagged_hook "after_scenario" |
#after_spec(options, &block) ⇒ Object
Invoked after execution of every specification.
110 |
# File 'lib/gauge.rb', line 110 tagged_hook "after_spec" |
#after_step(options, &block) ⇒ Object
Invoked after execution of every step.
106 |
# File 'lib/gauge.rb', line 106 tagged_hook "after_step" |
#after_suite(&block) ⇒ Object
Invoked after execution of the entire suite.
118 |
# File 'lib/gauge.rb', line 118 hook "after_suite" |
#before_scenario(options, &block) ⇒ Object
Invoked before execution of every scenario.
112 |
# File 'lib/gauge.rb', line 112 tagged_hook "before_scenario" |
#before_spec(options, &block) ⇒ Object
Invoked before execution of every specification.
108 |
# File 'lib/gauge.rb', line 108 tagged_hook "before_spec" |
#before_step(options, &block) ⇒ Object
Invoked before execution of every step.
104 |
# File 'lib/gauge.rb', line 104 tagged_hook "before_step" |
#before_suite(&block) ⇒ Object
Invoked before execution of the entire suite.
116 |
# File 'lib/gauge.rb', line 116 hook "before_suite" |
#step(*step_texts, &block) ⇒ Object
Specify implementation for a given step
94 95 96 97 98 99 100 101 |
# File 'lib/gauge.rb', line 94 def step(*step_texts, &block) step_texts.each do |text| parameterized_step_text = Gauge::Connector.step_value(text) Gauge::MethodCache.add_step(parameterized_step_text, &block) Gauge::MethodCache.add_step_text(parameterized_step_text, text) end Gauge::MethodCache.add_step_alias(*step_texts) end |