~singpolyma/sgx-jmp

963e24d32708f9af3412c4101c1715b6fa205d66 — Stephen Paul Weber 1 year, 29 days ago 4be555d
Allow skipping tests without being caught in pry
1 files changed, 13 insertions(+), 0 deletions(-)

M test/test_helper.rb
M test/test_helper.rb => test/test_helper.rb +13 -0
@@ 14,6 14,19 @@ require "webmock/minitest"
begin
	require "pry-rescue/minitest"
	require "pry-reload"

	module Minitest
		class Test
			alias old_capture_exceptions capture_exceptions
			def capture_exceptions
				old_capture_exceptions do
					yield
				rescue Minitest::Skip => e
					failures << e
				end
			end
		end
	end
rescue LoadError
	# Just helpers for dev, no big deal if missing
	nil