Sha256: 29ac93e935faca32b9ae1bf210701429566cf8e5ca2bc1769704f99155d5f85c

Contents?: true

Size: 549 Bytes

Versions: 4

Compression:

Stored size: 549 Bytes

Contents

module RR
  module Integrations
    class TestUnit200
      def initialize
        @mt4_adapter = RR.adapters_by_name[:MiniTest4]
        @tu_adapter = RR.adapters_by_name[:TestUnit1]
      end

      def name
        'Test::Unit 2.0.0'
      end

      def applies?
        @mt4_adapter.applies? &&
        defined?(::Test::Unit) &&
        !@tu_adapter.has_test_unit_version? &&
        @tu_adapter.test_unit_just_wraps_minitest?
      end

      def hook
        @mt4_adapter.hook
      end
    end

    RR.register_adapter TestUnit200
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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