forked from cucumber/aruba
-
Notifications
You must be signed in to change notification settings - Fork 0
/
working_directory.feature
33 lines (29 loc) · 935 Bytes
/
working_directory.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.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.rb" with:
"""
Aruba.configure do |config|
config.working_directory = 'tmp/cucumber'
end
"""
And the default feature-test
And the default executable
When I successfully run `cucumber`
Then a directory named "tmp/cucumber" should exist