Sha256: 9f9eeb841e2e8302afb1665e78e280cef7509aa32f4cff92c616c177d9e51aaa
Contents?: true
Size: 781 Bytes
Versions: 4
Compression:
Stored size: 781 Bytes
Contents
module RR module Integrations class TestUnit2ActiveSupport def initialize @tu2_adapter = RR.adapters_by_name[:TestUnit2] end def name "#{@tu2_adapter.name} + ActiveSupport" end def applies? @tu2_adapter.applies? && defined?(::ActiveSupport::TestCase) end def hook RR.trim_backtrace = true RR.overridden_error_class = ::Test::Unit::AssertionFailedError ::ActiveSupport::TestCase.class_eval do include RR::Adapters::RRMethods include TestUnit1::Mixin setup do RR.reset end teardown do RR.verify end end end end RR.register_adapter TestUnit2ActiveSupport end end
Version data entries
4 entries across 4 versions & 1 rubygems