Refactor trap_exit spec helper usages

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

View File

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