Sha256: 49ae6112749559d345d7217af8548febdc077570a2fe600e1cd2e4d33c252fd1

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

Feature: Configure timeout for command execution

  As a developer
  I want to configure the timeout when executing a command
  In order to support some longer running commands

  Background:
    Given I use the fixture "cli-app"

  Scenario: Default value
    Given a file named "features/support/aruba.rb" with:
    """
    Aruba.configure do |config|
      puts %(The default value is "#{config.exit_timeout}")
    end
    """
    When I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "15"
    """

  Scenario: Modify value
    Given an executable named "bin/cli" with:
    """
    #!/bin/bash
    sleep 1
    """
    And a file named "features/support/aruba.rb" with:
    """
    Aruba.configure do |config|
      config.exit_timeout = 2
    end
    """
    And the default feature-test
    Then I successfully run `cucumber`

  Scenario: Fails if takes longer
    Given an executable named "bin/cli" with:
    """
    #!/bin/bash
    sleep 2
    """
    And a file named "features/support/aruba.rb" with:
    """
    Aruba.configure do |config|
      config.exit_timeout = 1
    end
    """
    And the default feature-test
    Then I run `cucumber`
    And the exit status should be 1

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aruba-0.9.0.pre features/configuration/exit_timeout.feature