Class: Cucumber::Core::Compiler::ScenarioOutlineCompiler
- Inherits:
-
Object
- Object
- Cucumber::Core::Compiler::ScenarioOutlineCompiler
- Defined in:
- lib/cucumber/core/compiler.rb
Instance Method Summary collapse
- #examples_table(examples_table, &descend) ⇒ Object
- #examples_table_row(row) ⇒ Object
- #outline_step(outline_step) ⇒ Object
Instance Method Details
#examples_table(examples_table, &descend) ⇒ Object
91 92 93 94 95 |
# File 'lib/cucumber/core/compiler.rb', line 91 def examples_table(examples_table, &descend) @examples_table = examples_table descend.call(self) self end |
#examples_table_row(row) ⇒ Object
97 98 99 100 101 102 103 |
# File 'lib/cucumber/core/compiler.rb', line 97 def examples_table_row(row) steps(row).each do |step| receiver.on_step(source + [@examples_table, row, step]) end receiver.on_test_case(source + [@examples_table, row]) self end |
#outline_step(outline_step) ⇒ Object
86 87 88 89 |
# File 'lib/cucumber/core/compiler.rb', line 86 def outline_step(outline_step) outline_steps << outline_step self end |