Class: Cucumber::Core::Test::Mapper::CaseMapper

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeCaseMapper

Returns a new instance of CaseMapper.



25
26
27
28
# File 'lib/cucumber/core/test/mapper.rb', line 25

def initialize(*)
  super
  @test_steps = []
end

Instance Attribute Details

#test_stepsObject (readonly)

Returns the value of attribute test_steps.



23
24
25
# File 'lib/cucumber/core/test/mapper.rb', line 23

def test_steps
  @test_steps
end

Instance Method Details

#test_step(test_step) ⇒ Object



30
31
32
33
34
# File 'lib/cucumber/core/test/mapper.rb', line 30

def test_step(test_step)
  mapper = StepMapper.new(test_step)
  test_step.describe_to(mappings, mapper)
  test_steps << mapper.mapped_test_step
end