Methods

Class/Module Index [+]

Quicksearch

RR::Adapters

Public Class Methods

const_missing(adapter_const_name) click to toggle source
# File lib/rr/adapters.rb, line 9
def const_missing(adapter_const_name)
  unless DEPRECATED_ADAPTERS.include?(adapter_const_name)
    super
    return
  end

  show_warning_for(adapter_const_name)

  adapter = shim_adapters[adapter_const_name] ||=
    case adapter_const_name
      when :TestUnit
        find_applicable_adapter(:TestUnit1, :TestUnit2ActiveSupport, :TestUnit2)
      when :MiniTest
        find_applicable_adapter(:MinitestActiveSupport, :Minitest, :MiniTest4ActiveSupport, :MiniTest4)
    end

  adapter
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.