Sha256: 04994e265ae9c934612cbee23edd8731e820a03ec29b52fa1e2fd5900d431ef4
Contents?: true
Size: 707 Bytes
Versions: 1
Compression:
Stored size: 707 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'polyphony' require 'fileutils' require_relative './eg' require_relative './coverage' if ENV['COVERAGE'] require 'minitest/autorun' require 'minitest/reporters' ::Exception.__disable_sanitized_backtrace__ = true Minitest::Reporters.use! [ Minitest::Reporters::SpecReporter.new ] class MiniTest::Test def setup # for some reason, the first call to sleep in the context of tests returns # too early sleep 0 end def teardown # wait for any remaining scheduled work Thread.current.switch_fiber Polyphony.reset! end end module Kernel def capture_exception yield rescue Exception => e e end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
polyphony-0.27 | test/helper.rb |