Class: Lime::Scenario::Scope
- Inherits:
-
Module
- Object
- Module
- Lime::Scenario::Scope
- Defined in:
- lib/lime/scenario.rb
Instance Method Summary collapse
-
#Given(label) ⇒ Object
(also: #given)
Given …
-
#initialize(scenario, &block) ⇒ Scope
constructor
A new instance of Scope.
-
#Then(label) ⇒ Object
(also: #hence)
Then …
-
#When(label) ⇒ Object
(also: #wence)
When …
Constructor Details
#initialize(scenario, &block) ⇒ Scope
Returns a new instance of Scope.
113 114 115 116 117 118 119 |
# File 'lib/lime/scenario.rb', line 113 def initialize(scenario, &block) @scenario = scenario #include(scenario.feature.scope) module_eval(&block) end |
Instance Method Details
#Given(label) ⇒ Object Also known as: given
Given …
126 127 128 |
# File 'lib/lime/scenario.rb', line 126 def Given(label) @scenario.steps << Step.new(@scenario, label, :type=>:given) end |