Class: Cucumber::Core::Compiler::TestCaseBuilder

Inherits:
Object
  • Object
show all
Defined in:
lib/cucumber/core/compiler.rb

Instance Method Summary collapse

Instance Method Details

#on_background_step(source) ⇒ Object



24
25
26
27
# File 'lib/cucumber/core/compiler.rb', line 24

def on_background_step(source)
  background_test_steps << Test::Step.new(source)
  self
end

#on_step(source) ⇒ Object



29
30
31
32
# File 'lib/cucumber/core/compiler.rb', line 29

def on_step(source)
  test_steps << Test::Step.new(source)
  self
end

#on_test_case(source) ⇒ Object



34
35
36
37
38
# File 'lib/cucumber/core/compiler.rb', line 34

def on_test_case(source)
  Test::Case.new(test_steps, source).describe_to(receiver)
  @test_steps = nil
  self
end