Sha256: 18979b31474d127cd37eb7e787cc18200183eaae7378d7c2dda4f51a250884a9

Contents?: true

Size: 1.08 KB

Versions: 17

Compression:

Stored size: 1.08 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 it should pass with:
      """
      dlrow ,olleh
      """

  @posix @fails-on-travis
  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
      """

  @posix
  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

17 entries across 17 versions & 5 rubygems

Version Path
aruba-0.5.0 features/interactive.feature
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/aruba-0.4.11/features/interactive.feature
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/aruba-0.4.11/features/interactive.feature
resque-pool-0.3.0 vendor/bundle/ruby/1.8/gems/aruba-0.4.11/features/interactive.feature
ftl-0.2.0 vendor/bundle/gems/aruba-0.4.11/features/interactive.feature
resque-pool-0.3.0.beta.2 vendor/bundle/ruby/1.8/gems/aruba-0.4.11/features/interactive.feature
aruba-0.4.11 features/interactive.feature
aruba-0.4.10 features/interactive.feature
aruba-0.4.9 features/interactive.feature
aruba-0.4.8 features/interactive.feature
rjobs-0.3.3.alpha vendor/aruba-0.4.7/features/interactive.feature
rjobs-0.3.2.alpha vendor/aruba-0.4.7/features/interactive.feature
rjobs-0.3.1.alpha vendor/aruba-0.4.7/features/interactive.feature
rjobs-0.3.0.alpha vendor/aruba-0.4.7/features/interactive.feature
rjobs-0.2.0.alpha vendor/aruba-0.4.7/features/interactive.feature
rjobs-0.1.0.alpha vendor/aruba-0.4.7/features/interactive.feature
aruba-0.4.7 features/interactive.feature