Sha256: 5f59bef2e7ed6a437b8d43de076b0322f02175192eaf8a910741e16a1983fbeb

Contents?: true

Size: 1.7 KB

Versions: 12

Compression:

Stored size: 1.7 KB

Contents

Feature: Cell modeling

  Cell models represent an individual cell in a table row (either a step table or an example table). They expose several attributes of the cell that they represent.


  Background:
    Given the following gherkin:
      """
      foo
      """
    And a cell model based on that gherkin
      """
        @model = CukeModeler::Cell.new(<source_text>)
      """


  Scenario: Modeling a cell's value
    When the cell's value is requested
      """
        @model.value
      """
    Then the model returns "foo"

  Scenario: Modeling a cell's source line
    Given the following gherkin:
      """
      Feature:

        Scenario:
          * a step
            | foo |
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    And the cell model inside of that feature model
      """
        @model = @model.tests.first.steps.first.block.rows.first.cells.first
      """
    When the cell's source line is requested
      """
        @model.source_line
      """
    Then the model returns "5"

  Scenario: Modeling a cell's source column
    Given the following gherkin:
      """
      Feature:

        Scenario:
          * a step
            | foo |
      """
    And a feature model based on that gherkin
      """
        @model = CukeModeler::Feature.new(<source_text>)
      """
    And the cell model inside of that feature model
      """
        @model = @model.tests.first.steps.first.block.rows.first.cells.first
      """
    When the cell's source column is requested
      """
        @model.source_column
      """
    Then the model returns "9"

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
cuke_modeler-3.24.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.23.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.22.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.21.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.20.1 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.20.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.19.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.18.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.17.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.16.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.15.0 testing/cucumber/features/modeling/cell_modeling.feature
cuke_modeler-3.14.0 testing/cucumber/features/modeling/cell_modeling.feature