Sha256: 6fbfec86965a3cf1ac4984aff317ab271a942732573d500951a9bc989eb8f8c8

Contents?: true

Size: 1.08 KB

Versions: 5

Compression:

Stored size: 1.08 KB

Contents

Feature: Configure directory where to look for fixtures

  As a developer
  I want to configure the directory where aruba looks for fixtures
  In order to use them in my tests

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

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

  Scenario: Modify value
    Given a file named "features/support/aruba_config.rb" with:
    """ruby
    Aruba.configure do |config|
      config.fixtures_directories = %w(spec/fixtures)
    end

    Aruba.configure do |config|
      puts %(The default value is "%w(#{config.fixtures_directories.join(" ")})")
    end
    """
    When I successfully run `cucumber`
    Then the output should contain:
    """
    The default value is "%w(spec/fixtures)"
    """

Version data entries

5 entries across 5 versions & 1 rubygems

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