features/step_definitions/cli_steps.rb in berkshelf-0.6.0.beta2 vs features/step_definitions/cli_steps.rb in berkshelf-0.6.0.beta3

- old
+ new

@@ -57,14 +57,18 @@ When /^I run the upload command with flags:$/ do |flags| run_simple(unescape("berks upload #{flags.raw.join(" ")}"), false) end When /^I run the cookbook command to create "(.*?)"$/ do |name| - run_simple(unescape("berks cookbook #{name}")) + run_simple(unescape("berks cookbook #{name}"), false) end When /^I run the cookbook command to create "(.*?)" with options:$/ do |name, options| run_simple(unescape("berks cookbook #{name} #{options.raw.join(" ")}")) +end + +When /^I run the config command$/ do + run_simple unescape("berks config") end Then /^the CLI should exit with the status code for error "(.*?)"$/ do |error_constant| exit_status = Berkshelf.const_get(error_constant).status_code assert_exit_status(exit_status)