Add rspec exit helpers
This commit is contained in:
parent
1658a616a8
commit
f38a5761be
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
|
Loading…
x
Reference in New Issue
Block a user