Sha256: fa50baefc31d56ac4de6ca9dce38b26299136135be62f6b09e8cf2c41fcaabe9

Contents?: true

Size: 1.05 KB

Versions: 5

Compression:

Stored size: 1.05 KB

Contents

Feature: Configure working directory of aruba

  As a developer
  I want to configure the working directory of aruba
  In order to have a test directory for each used spec runner - e.g. cucumber or rspec

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

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

  Scenario: Modify value
    Given a file named "features/support/aruba_config.rb" with:
    """
    Aruba.configure do |config|
      config.working_directory = 'tmp/cucumber'
    end
    """
    And a file named "features/run.feature" with:
    """
    Feature: Run it
      Scenario: Fast command
        When I run `echo "Hello"`
        Then the exit status should be 0
    """
    When I successfully run `cucumber`
    Then a directory named "tmp/cucumber" should exist

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aruba-0.14.14 features/02_configure_aruba/working_directory.feature
aruba-0.14.13 features/02_configure_aruba/working_directory.feature
aruba-0.14.12 features/02_configure_aruba/working_directory.feature
aruba-0.14.11 features/02_configure_aruba/working_directory.feature
aruba-0.14.10 features/02_configure_aruba/working_directory.feature