From f38a5761bec55a7de466449fc93bf8dbde9b4e59 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 7 Apr 2015 17:33:35 +0000 Subject: [PATCH] Add rspec exit helpers --- spec/support/exit_helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 spec/support/exit_helpers.rb 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