Sha256: 63bf8bb3570f32d10a53141577b052137d4eab557fd668b5abc261658314d47d

Contents?: true

Size: 758 Bytes

Versions: 2

Compression:

Stored size: 758 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 in "hello, world"
    And I type in "quit"
    Then the output should contain:
      """
      dlrow ,olleh
      """

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
aruba-jbb-0.2.7.01 features/interactive.feature
aruba-jbb-0.2.6.14 features/interactive.feature