Refactor producer invocation in cucumber features:
Use "When I successfully execute" instead of "When I execute", and assert that exit status code was successful in this new step.
This commit is contained in:
1 parent
0a9f7e38af
commit
33a2b9de5a
9 files changed
+14
-17
No files matched your search
@@ -5,3 +5,8 @@ end
|
||||
When(/^I execute the recipe$/) do
|
||||
run_simple('producer recipe.rb', false)
|
||||
end
|
||||
|
||||
When(/^I successfully execute the recipe$/) do
|
||||
step 'I execute the recipe'
|
||||
assert_exit_status(0)
|
||||
end
|
||||
Reference in new issue
Block a user