features/step_definitions/cli_steps.rb in berkshelf-0.4.0.rc1 vs features/step_definitions/cli_steps.rb in berkshelf-0.4.0.rc2
- old
+ new
@@ -52,9 +52,17 @@
When /^I run the upload command$/ do
run_simple(unescape("berks upload"), true)
end
+When /^I run the cookbook command to create "(.*?)"$/ do |name|
+ run_simple(unescape("berks cookbook #{name}"))
+end
+
+When /^I run the cookbook command to create "(.*?)" with options:$/ do |name, options|
+ run_simple(unescape("berks cookbook #{name} #{options.raw.join(" ")}"))
+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)
end