Sha256: 1322d7e46fefdcbeece7c8267d78a54789d2dde7f229efbf7d0099401617de0c

Contents?: true

Size: 746 Bytes

Versions: 11

Compression:

Stored size: 746 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 we do have 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

11 entries across 11 versions & 1 rubygems

Version Path
aruba-jbb-0.2.6.13 features/interactive.feature
aruba-jbb-0.2.6.12 features/interactive.feature
aruba-jbb-0.2.6.11 features/interactive.feature
aruba-jbb-0.2.6.10 features/interactive.feature
aruba-jbb-0.2.6.9 features/interactive.feature
aruba-jbb-0.2.6.8 features/interactive.feature
aruba-jbb-0.2.6.7 features/interactive.feature
aruba-jbb-0.2.6.5 features/interactive.feature
aruba-jbb-0.2.6.4 features/interactive.feature
aruba-jbb-0.2.6.3 features/interactive.feature
aruba-jbb-0.2.6.2 features/interactive.feature