features/step_definitions/cli_steps.rb in berkshelf-4.0.1 vs features/step_definitions/cli_steps.rb in berkshelf-4.1.0
- old
+ new
@@ -1,4 +1,4 @@
Then /^the exit status should be "(.+)"$/ do |name|
error = name.split('::').reduce(Berkshelf) { |klass, id| klass.const_get(id) }
- assert_exit_status(error.status_code)
+ expect(last_command_started).to have_exit_status(error.status_code)
end