Skip to content

Commit

Permalink
Add run step test checking if announcer is activated on command failure
Browse files Browse the repository at this point in the history
  • Loading branch information
njam committed Jan 25, 2016
1 parent 9511760 commit e95adeb
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions features/steps/command/run.feature
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,31 @@ Feature: Run commands
When I run `cucumber`
Then the features should all pass

Scenario: Activate desired announcers when running command fails
Given an executable named "bin/cli" with:
"""
#!/bin/bash
echo "Hello, I'm STDOUT"
exit 1
"""
And a file named "features/run.feature" with:
"""
Feature: Run it
Scenario: Run command
When I successfully run `cli`
"""
And a file named "features/step_definitions.rb" with:
"""
Aruba.configure do |config|
config.activate_announcer_on_command_failure = [:stdout]
end
"""
When I run `cucumber`
Then the features should not pass
And the output should contain:
"""
<<-STDOUT
Hello, I'm STDOUT
STDOUT
"""

0 comments on commit e95adeb

Please sign in to comment.