-
-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add configuration option to enable activation of announcer channels w…
…hen a command fails
- Loading branch information
Showing
4 changed files
with
86 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
features/configuration/activate_announcer_on_command_failure.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
Feature: Configure announcer activation on command failure | ||
|
||
As a developer | ||
I want to configure which announcers should get activated on command failure | ||
In order to understand what caused a command to fail | ||
|
||
Background: | ||
Given I use the fixture "cli-app" | ||
|
||
Scenario: Default value | ||
Given a file named "features/support/aruba.rb" with: | ||
"""ruby | ||
Aruba.configure do |config| | ||
puts %(The default value is "#{config.activate_announcer_on_command_failure}") | ||
end | ||
""" | ||
When I successfully run `cucumber` | ||
Then the output should contain: | ||
"""ruby | ||
The default value is "[]" | ||
""" | ||
|
||
Scenario: Modify value | ||
Given a file named "features/support/aruba.rb" with: | ||
"""ruby | ||
Aruba.configure do |config| | ||
config.activate_announcer_on_command_failure = [:foo, :bar] | ||
end | ||
Aruba.configure do |config| | ||
puts %(The value is "#{config.activate_announcer_on_command_failure}") | ||
end | ||
""" | ||
Then I successfully run `cucumber` | ||
Then the output should contain: | ||
""" | ||
The value is "[:foo, :bar]" | ||
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters