diff options
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 91e0d31680..6dcd4b0551 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -297,11 +297,11 @@ RSpec.configure do |config| # Protect Rspec from accidental exit(0) causing rspec to terminate without error config.around(:example) do |ex| - begin - ex.run - rescue SystemExit => e - raise UnexpectedSystemExit.from(e) - end + + ex.run + rescue SystemExit => e + raise UnexpectedSystemExit.from(e) + end end |