Sha256: dee10d1f35d606a6195048b8b3d31cbd00756bd8eb3e45ad2cb5cd88b46f002e

Contents?: true

Size: 808 Bytes

Versions: 3

Compression:

Stored size: 808 Bytes

Contents

Feature: Ruby scripting

  Scenario:
    Given the following data is in the stream:
       | id | title               | author          |
       | 1  | The great tool      | Tim Taylor      |
       | 2  | A football anecdote | John Miller     |
       | 3  | Historical music    | John Mellencamp |

    And I create a Itiel::Script::RubyScript object with the following block of code:
      """
        row["slug"] = row["title"].parameterize
      """

    Then the resulting output stream should be:
       | id | title               | author          | slug                |
       | 1  | The great tool      | Tim Taylor      | the-great-tool      |
       | 2  | A football anecdote | John Miller     | a-football-anecdote |
       | 3  | Historical music    | John Mellencamp | historical-music    |

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
itiel-0.1.2 features/script/ruby_script.feature
itiel-0.1.1 features/script/ruby_script.feature
itiel-0.1.0 features/script/ruby_script.feature