Print a warning when in dry run mode

This commit is contained in:
Thibault Jouan
2014-07-01 18:15:55 +00:00
parent aac5f603e3
commit 1188b2008f
7 changed files with 52 additions and 7 deletions

View File

@@ -1,11 +1,17 @@
Feature: CLI dry run option
Scenario: perfoms a trial run without applying actions
Background:
Given a recipe with:
"""
task :say_hello do
echo 'hello'
end
"""
Scenario: perfoms a trial run without applying actions
When I successfully execute the recipe with option -n
Then the output must not contain "hello"
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/