aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorYehuda Katz <yehudakatz@YK.local>2010-02-16 15:00:10 -0800
committerYehuda Katz <yehudakatz@YK.local>2010-02-16 15:00:10 -0800
commit762088a0ef1f69ab09833732cfe8190098303ee6 (patch)
tree08ecd9ca32e3bf3d3f7d4219be33c9a79549e58c /activesupport/test
parentac956c4aee7e2108033af087845f4f01c591d52f (diff)
downloadrails-762088a0ef1f69ab09833732cfe8190098303ee6.tar.gz
rails-762088a0ef1f69ab09833732cfe8190098303ee6.tar.bz2
rails-762088a0ef1f69ab09833732cfe8190098303ee6.zip
Clear the attribute after done
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/class/delegating_attributes_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/test/core_ext/class/delegating_attributes_test.rb b/activesupport/test/core_ext/class/delegating_attributes_test.rb
index 011068ab74..636edb8d4b 100644
--- a/activesupport/test/core_ext/class/delegating_attributes_test.rb
+++ b/activesupport/test/core_ext/class/delegating_attributes_test.rb
@@ -84,6 +84,8 @@ class DelegatingAttributesTest < Test::Unit::TestCase
assert_equal "1", Child.some_attribute
assert_nil Mokopuna.some_attribute
+ ensure
+ Child.some_attribute=nil
end
end