class ProxyWrappersTest

Constants

NewWaffles
Waffles

Public Instance Methods

test_deprecated_constant_proxy_doesnt_wrap_falsy_objects() click to toggle source
# File activesupport/test/deprecation/proxy_wrappers_test.rb, line 20
def test_deprecated_constant_proxy_doesnt_wrap_falsy_objects
  proxy = ActiveSupport::Deprecation::DeprecatedConstantProxy.new(Waffles, NewWaffles)
  assert !proxy
end
test_deprecated_instance_variable_proxy_doesnt_wrap_falsy_objects() click to toggle source
# File activesupport/test/deprecation/proxy_wrappers_test.rb, line 15
def test_deprecated_instance_variable_proxy_doesnt_wrap_falsy_objects
  proxy = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(nil, :waffles)
  assert !proxy
end
test_deprecated_object_proxy_doesnt_wrap_falsy_objects() click to toggle source
# File activesupport/test/deprecation/proxy_wrappers_test.rb, line 10
def test_deprecated_object_proxy_doesnt_wrap_falsy_objects
  proxy = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(nil, "message")
  assert !proxy
end