[DRE-commits] [ruby-aruba] 75/98: Add run step test checking if announcer is activated on command failure
Hideki Yamane
henrich at moszumanska.debian.org
Tue Mar 22 12:20:42 UTC 2016
This is an automated email from the git hooks/post-receive script.
henrich pushed a commit to branch debian/sid
in repository ruby-aruba.
commit abee6c74fd68f87fc0b0dad9cf46a48978b34c29
Author: Reto Kaiser <reto at cargomedia.ch>
Date: Mon Jan 25 10:53:37 2016 +0100
Add run step test checking if announcer is activated on command failure
---
features/steps/command/run.feature | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/features/steps/command/run.feature b/features/steps/command/run.feature
index ec45ac9..786d8cb 100644
--- a/features/steps/command/run.feature
+++ b/features/steps/command/run.feature
@@ -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 I append to "features/support/env.rb" with:
+ """
+ Before do
+ aruba.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
+ """
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-aruba.git
More information about the Pkg-ruby-extras-commits
mailing list