Sha256: 65c29034a623f399941f4d04a08f5c9f452173b3a00d749a51ff7678d2d2762d

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

Feature: step saving
  Background:
    Given a file named "examples/support/env.rb" with:
      """
      require 'cucumberator'
      """
    Given a file named "examples/step_definitions/extra.rb" with:
      """
      When(/I do some magical stuff with '(\w+)'/) do |*args|
        # just example
      end

      """
    Given a file named "examples/cucumberize.feature" with:
      """
      Feature: example
        @cucumberize
        Scenario: cucumberize
          When I do some magical stuff with 'apples'

      """

  Scenario: autosave after successfull execution
    When I run `cucumber examples/cucumberize.feature` interactively
    And I type "When I do some magical stuff with 'chairs'"
    And I type "exit"
    Then it should pass with:
      """
      Saved `When I do some magical stuff with 'chairs'` to cucumberize.feature
      """
    And the file "examples/cucumberize.feature" should contain exactly:
      """
      Feature: example
        @cucumberize
        Scenario: cucumberize
          When I do some magical stuff with 'apples'
          When I do some magical stuff with 'chairs'

      """

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cucumberator-1.0.3 features/cucumberize.feature
cucumberator-1.0.2 features/cucumberize.feature
cucumberator-1.0.1 features/cucumberize.feature
cucumberator-1.0.0 features/cucumberize.feature