Permalink
Browse files

Clear the attribute after done

  • Loading branch information...
Yehuda Katz Yehuda Katz
Yehuda Katz authored and Yehuda Katz committed Feb 16, 2010
1 parent ac956c4 commit 762088a0ef1f69ab09833732cfe8190098303ee6
Showing with 2 additions and 0 deletions.
  1. +2 −0 activesupport/test/core_ext/class/delegating_attributes_test.rb
@@ -84,6 +84,8 @@ def test_delegation_stops_for_nil
assert_equal "1", Child.some_attribute
assert_nil Mokopuna.some_attribute
+ ensure
+ Child.some_attribute=nil
end
end

0 comments on commit 762088a

Please sign in to comment.