Enable verbose mode when PRODUCER_VERBOSE is set

This commit is contained in:
Thibault Jouan
2015-04-06 13:45:57 +00:00
parent cd389a3209
commit bd754f2bf6
4 changed files with 32 additions and 5 deletions

View File

@@ -41,3 +41,8 @@ Feature: CLI verbose option
"""
When I successfully execute the recipe with option -v
Then the output must match /action: .{,70}$/
Scenario: enables verbose mode from the environment
Given I set the environment variable "PRODUCER_VERBOSE"
When I successfully execute the recipe
Then the output must contain "Task"

View File

@@ -0,0 +1,3 @@
Given /^I set the environment variable "([^"]+)"$/ do |variable|
set_env variable, 'yes'
end