Refactor trap_exit spec helper usages

This commit is contained in:
Thibault Jouan committed 2013-08-01 22:51:41 +00:00
1 parent c4fc9828db
commit c3737e738e
3 files changed
+9 -9

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
module ExitHelpers
def trap_exit
yield
rescue SystemExit
end
end