Skip to content

Commit

Permalink
Merge pull request ManageIQ#134 from bdunne/exit_if_exit_is_called
Browse files Browse the repository at this point in the history
exit 1 if exit is called while running a spec
  • Loading branch information
Fryguy authored Jun 30, 2017
2 parents 3aea4c4 + a2eb62e commit c1e5f27
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,17 @@ def require_domain_file
RSpec.configure do |config|
config.include Spec::Support::AutomationHelper

config.around(:example) do |ex|
begin
ex.run
rescue SystemExit => e
STDERR.puts
STDERR.puts "Kernel.exit called from:"
STDERR.puts e.backtrace
exit 1
end
end

config.before(:suite) do
puts "** Resetting #{ENV["AUTOMATE_DOMAINS"]} domain(s)"
Tenant.seed
Expand Down

0 comments on commit c1e5f27

Please sign in to comment.