Sha256: b7a8acbc06bf25308580f9602f0510cca0ab64e3fcde7853f05ad0bb58489ad8

Contents?: true

Size: 526 Bytes

Versions: 4

Compression:

Stored size: 526 Bytes

Contents

module RR
  module Integrations
    class TestUnit200ActiveSupport
      def initialize
        @mt4as_adapter = RR.adapters_by_name[:MiniTest4ActiveSupport]
        @tu200_adapter = RR.adapters_by_name[:TestUnit200]
      end

      def name
        "#{@tu200_adapter.name} + ActiveSupport"
      end

      def applies?
        @tu200_adapter.applies? && defined?(::ActiveSupport::TestCase)
      end

      def hook
        @mt4as_adapter.hook
      end
    end

    RR.register_adapter TestUnit200ActiveSupport
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rr-1.1.2 lib/rr/integrations/test_unit_200_active_support.rb
rr-1.1.2.rc1 lib/rr/integrations/test_unit_200_active_support.rb
rr-1.1.1 lib/rr/integrations/test_unit_200_active_support.rb
rr-1.1.1.rc1 lib/rr/integrations/test_unit_200_active_support.rb