Refactor trap_exit spec helper usages
This commit is contained in:
1 parent
c4fc9828db
commit
c3737e738e
3 files changed
+9
-9
No files matched your search
@@ -0,0 +1,6 @@
|
||||
module ExitHelpers
|
||||
def trap_exit
|
||||
yield
|
||||
rescue SystemExit
|
||||
end
|
||||
end
|
||||
Reference in new issue
Block a user