Enable verbose mode when PRODUCER_VERBOSE is set
This commit is contained in:
@@ -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"
|
||||
|
3
features/steps/environment_steps.rb
Normal file
3
features/steps/environment_steps.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
Given /^I set the environment variable "([^"]+)"$/ do |variable|
|
||||
set_env variable, 'yes'
|
||||
end
|
Reference in New Issue
Block a user