Sha256: 2e4b493159b7a905fa92ac636ac0c9b4374237865815f1ab3d4b0d2e19524afa

Contents?: true

Size: 1.05 KB

Versions: 12

Compression:

Stored size: 1.05 KB

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
      """

  Scenario: Stop processes before checking for filesystem changes 
    See: http://github.com/aslakhellesoy/aruba/issues#issue/17 for context

    Given a directory named "rename_me"
    When I run "mv rename_me renamed" interactively
    Then a directory named "renamed" should exist
    And a directory named "rename_me" should not exist

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
aruba-0.3.3 features/interactive.feature
vim-jar-0.1.2.0001 bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature
aruba-0.3.2 features/interactive.feature
aruba-0.3.1 features/interactive.feature
aruba-0.3.0 features/interactive.feature
aruba-0.2.8 features/interactive.feature
vim-jar-0.1.2 bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature
vim-jar-0.1.1 bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature
vim-jar-0.1.0 bundler/ruby/1.8/gems/aruba-0.2.6/features/interactive.feature
aruba-0.2.7 features/interactive.feature
aruba-0.2.6 features/interactive.feature
aruba-0.2.5 features/interactive.feature