Sha256: 3d2dca8320c87938fe8bc146bb1f1c5c2c75cdc4bdc3d9475116436c4915d3aa

Contents?: true

Size: 735 Bytes

Versions: 3

Compression:

Stored size: 735 Bytes

Contents

Feature: Interactive process control

  In order to test interactive command line applications
  As a developer using Cucumber
  I want to use the interactive session steps

  Scenario: Running ruby interactively
    Given a file named "echo.rb" with:
      """
      while res = gets.chomp
        break if res == "quit"
        puts res.reverse
      end
      """
    When I run "ruby echo.rb" interactively
    And I type "hello, world"
    And I type "quit"
    Then the output should contain:
      """
      dlrow ,olleh
      """

  Scenario: Running a native binary interactively
    When I run "bc -q" interactively
    And I type "4 + 3"
    And I type "quit"
    Then the output should contain:
      """
      7
      """

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
pickled_aruba-0.1.0 features/interactive.feature
aruba-0.2.4 features/interactive.feature
aruba-0.2.3 features/interactive.feature