Permalink
Browse files

fixing space errors

  • Loading branch information...
1 parent c819c13 commit 32844cbc025b394ecd0b9fe2fd755b4e5b6cd4e7 @tenderlove tenderlove committed Jul 26, 2010
@@ -5,11 +5,11 @@ module Deprecation
class DeprecationProxy #:nodoc:
def self.new(*args, &block)
object = args.first
-
+
return object unless object
super
end
-
+
instance_methods.each { |m| undef_method m unless m =~ /^__|^object_id$/ }
# Don't give a deprecation warning on inspect since test/unit and error
@@ -4,19 +4,19 @@
class ProxyWrappersTest < Test::Unit::TestCase
Waffles = false
NewWaffles = :hamburgers
-
+
def test_deprecated_object_proxy_doesnt_wrap_falsy_objects
proxy = ActiveSupport::Deprecation::DeprecatedObjectProxy.new(nil, "message")
assert !proxy
end
-
+
def test_deprecated_instance_variable_proxy_doesnt_wrap_falsy_objects
proxy = ActiveSupport::Deprecation::DeprecatedInstanceVariableProxy.new(nil, :waffles)
assert !proxy
end
-
+
def test_deprecated_constant_proxy_doesnt_wrap_falsy_objects
proxy = ActiveSupport::Deprecation::DeprecatedConstantProxy.new(Waffles, NewWaffles)
assert !proxy
end
-end
+end

0 comments on commit 32844cb

Please sign in to comment.