Class: Cucumber::Core::Test::Mapper::CaseMapper
- Inherits:
-
Object
- Object
- Cucumber::Core::Test::Mapper::CaseMapper
- Defined in:
- lib/cucumber/core/test/mapper.rb
Instance Attribute Summary collapse
-
#test_steps ⇒ Object
readonly
Returns the value of attribute test_steps.
Instance Method Summary collapse
-
#initialize ⇒ CaseMapper
constructor
A new instance of CaseMapper.
- #test_step(test_step) ⇒ Object
Constructor Details
#initialize ⇒ CaseMapper
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_steps ⇒ Object (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 |