diff --git a/spec/support/exit_helpers.rb b/spec/support/exit_helpers.rb new file mode 100644 index 0000000..138f128 --- /dev/null +++ b/spec/support/exit_helpers.rb @@ -0,0 +1,6 @@ +module ExitHelpers + def trap_exit + yield + rescue SystemExit + end +end