method
const_missing
v2_1_10 -
Show latest stable
- Class:
MiniTest
const_missing(name)public
No documentation available.
# File lib/minitest/unit.rb, line 17
def self.const_missing name # :nodoc:
case name
when :MINI_DIR then
msg = "MiniTest::MINI_DIR was removed. Don't violate other's internals."
warn "WAR\NING: #{msg}"
warn "WAR\NING: Used by #{caller.first}."
const_set :MINI_DIR, "bad value"
else
super
end
end