Add rspec exit helpers
This commit is contained in:
6
spec/support/exit_helpers.rb
Normal file
6
spec/support/exit_helpers.rb
Normal file
@@ -0,0 +1,6 @@
|
||||
module ExitHelpers
|
||||
def trap_exit
|
||||
yield
|
||||
rescue SystemExit
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user