class RR::Integrations::TestUnit200

Public Class Methods

new() click to toggle source
# File lib/rr/integrations/test_unit_200.rb, line 4
def initialize
  @mt4_adapter = RR.adapters_by_name[:MiniTest4]
  @tu_adapter = RR.adapters_by_name[:TestUnit1]
end

Public Instance Methods

applies?() click to toggle source
# File lib/rr/integrations/test_unit_200.rb, line 13
def applies?
  @mt4_adapter.applies? &&
  defined?(::Test::Unit) &&
  !@tu_adapter.has_test_unit_version? &&
  @tu_adapter.test_unit_just_wraps_minitest?
end
hook() click to toggle source
# File lib/rr/integrations/test_unit_200.rb, line 20
def hook
  @mt4_adapter.hook
end
name() click to toggle source
# File lib/rr/integrations/test_unit_200.rb, line 9
def name
  'Test::Unit 2.0.0'
end