Module: Kernel
- Defined in:
- lib/gauge.rb
Instance Method Summary collapse
-
#after_scenario(&block) ⇒ Object
Invoked after execution of every scenario.
-
#after_spec(&block) ⇒ Object
Invoked after execution of every specification.
-
#after_step(&block) ⇒ Object
Invoked after execution of every step.
-
#after_suite(&block) ⇒ Object
Invoked after execution of the entire suite.
-
#before_scenario(&block) ⇒ Object
Invoked before execution of every scenario.
-
#before_spec(&block) ⇒ Object
Invoked before execution of every specification.
-
#before_step(&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(&block) ⇒ Object
Invoked after execution of every scenario.
100 |
# File 'lib/gauge.rb', line 100 hook "after_scenario" |
#after_spec(&block) ⇒ Object
Invoked after execution of every specification.
96 |
# File 'lib/gauge.rb', line 96 hook "after_spec" |
#after_step(&block) ⇒ Object
Invoked after execution of every step.
92 |
# File 'lib/gauge.rb', line 92 hook "after_step" |
#after_suite(&block) ⇒ Object
Invoked after execution of the entire suite.
104 |
# File 'lib/gauge.rb', line 104 hook "after_suite" |
#before_scenario(&block) ⇒ Object
Invoked before execution of every scenario.
98 |
# File 'lib/gauge.rb', line 98 hook "before_scenario" |
#before_spec(&block) ⇒ Object
Invoked before execution of every specification.
94 |
# File 'lib/gauge.rb', line 94 hook "before_spec" |
#before_step(&block) ⇒ Object
Invoked before execution of every step.
90 |
# File 'lib/gauge.rb', line 90 hook "before_step" |
#before_suite(&block) ⇒ Object
Invoked before execution of the entire suite.
102 |
# File 'lib/gauge.rb', line 102 hook "before_suite" |
#step(*step_texts, &block) ⇒ Object
Specify implementation for a given step
80 81 82 83 84 85 86 87 |
# File 'lib/gauge.rb', line 80 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 |