Enable dry run mode when PRODUCER_DRYRUN is set

This commit is contained in:
Thibault Jouan
2015-04-06 13:53:29 +00:00
parent 2b0e62be26
commit 658e333420
3 changed files with 17 additions and 2 deletions

View File

@@ -15,3 +15,8 @@ Feature: CLI dry run option
Scenario: prints a warning before any output
When I successfully execute the recipe with option -n
Then the output must match /\AWarning: running in dry run mode, actions will NOT be applied/
Scenario: enables dry run mode from the environment
Given I set the environment variable "PRODUCER_DRYRUN"
When I successfully execute the recipe
Then the output must contain "running in dry run"