Skip to content

Commit

Permalink
Rescue expectation error when setting up requirements
Browse files Browse the repository at this point in the history
Signed-off-by: Maria Shaldibina <mshaldibina@pivotal.io>
  • Loading branch information
Corey Innis authored and mariash committed Nov 12, 2015
1 parent c669c7a commit ce09bf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bat/requirements.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def require_deployment(what, deployment_spec, options)
expect(@bosh_runner.bosh_safe("deployment #{what.to_path}")).to succeed
expect(@bosh_runner.bosh_safe('deploy')).to succeed
end
rescue
rescue RSpec::Expectations::ExpectationNotMetError
@spec_state.register_fail
raise
end
Expand Down

0 comments on commit ce09bf9

Please sign in to comment.