Cucumber / Aruba / Docs / 02 configure aruba
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:rubyAruba.configure do |config| puts %(The default value is "%w(#{config.fixtures_directories.join(" ")})") end - When I successfully run `cucumber`
- Then the output should contain:
text
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:rubyAruba.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:
text
The default value is "%w(spec/fixtures)"
Source: features/02_configure_aruba/fixtures_directories.feature at commit c39310a7, Aruba (MIT license).