Class: Cucumber::Core::Compiler::FeatureCompiler
- Inherits:
-
Object
- Object
- Cucumber::Core::Compiler::FeatureCompiler
- Defined in:
- lib/cucumber/core/compiler.rb
Instance Method Summary collapse
- #background(background, &descend) ⇒ Object
- #feature(feature, &descend) ⇒ Object
- #scenario(scenario, &descend) ⇒ Object
- #scenario_outline(scenario_outline, &descend) ⇒ Object
Instance Method Details
#background(background, &descend) ⇒ Object
60 61 62 63 64 65 |
# File 'lib/cucumber/core/compiler.rb', line 60 def background(background, &descend) source = [@feature, background] compiler = BackgroundCompiler.new(source, receiver) descend.call(compiler) self end |
#feature(feature, &descend) ⇒ Object
54 55 56 57 58 |
# File 'lib/cucumber/core/compiler.rb', line 54 def feature(feature, &descend) @feature = feature descend.call(self) self end |
#scenario(scenario, &descend) ⇒ Object
67 68 69 70 71 72 73 |
# File 'lib/cucumber/core/compiler.rb', line 67 def scenario(scenario, &descend) source = [@feature, scenario] scenario_compiler = ScenarioCompiler.new(source, receiver) descend.call(scenario_compiler) receiver.on_test_case(source) self end |
#scenario_outline(scenario_outline, &descend) ⇒ Object
75 76 77 78 79 80 |
# File 'lib/cucumber/core/compiler.rb', line 75 def scenario_outline(scenario_outline, &descend) source = [@feature, scenario_outline] compiler = ScenarioOutlineCompiler.new(source, receiver) descend.call(compiler) self end |