module RSpec::LegacyFormatters::Adaptor::LegacyColorSupport::ConstantLookup

@private

Public Instance Methods

const_missing(name) click to toggle source
Calls superclass method
# File lib/rspec/legacy_formatters/adaptor.rb, line 54
def const_missing(name)
  base_name = "RSpec::Core::Formatters::BaseTextFormatter"
  case name
  when :VT100_COLORS then
    RSpec.deprecate("#{base_name}::VT100_COLORS", :replacement => "RSpec::Core::Formatters::ConsoleCodes.code_for(code_or_symbol)")
    RSpec::Core::Formatters::ConsoleCodes::VT100_CODES
  when :VT100_COLOR_CODES then
    RSpec.deprecate("#{base_name}::VT100_COLOR_CODES", :replacement => "RSpec::Core::Formatters::ConsoleCodes.code_for(code_or_symbol)")
    RSpec::Core::Formatters::ConsoleCodes::VT100_CODE_VALUES
  else
    super
  end
end