module RR::Adapters

Constants

DEPRECATED_ADAPTERS

Public Class Methods

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

  show_warning_for(adapter_const_name)
  RR.autohook

  Module.new
end

Private Class Methods

show_warning_for(adapter_const_name) click to toggle source
# File lib/rr/adapters.rb, line 24
      def show_warning_for(adapter_const_name)
        warn <<EOT
--------------------------------------------------------------------------------
RR deprecation warning: RR now has an autohook system. You don't need to
`include RR::Adapters::*` in your test framework's base class anymore.
--------------------------------------------------------------------------------
EOT
      end