aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/memoizable_test.rb
diff options
context:
space:
mode:
authorEugene Pimenov <libc@mac.com>2008-10-05 17:24:52 -0500
committerJoshua Peek <josh@joshpeek.com>2008-10-05 17:25:58 -0500
commit8603813ac6e1bff8d3addad58d0a56b33baafc59 (patch)
tree05e41813fde44b811bc69a4a87f63e74420c5913 /activesupport/test/memoizable_test.rb
parent1c75b4fd42c707ce3d539e8453784b4abf74e035 (diff)
downloadrails-8603813ac6e1bff8d3addad58d0a56b33baafc59.tar.gz
rails-8603813ac6e1bff8d3addad58d0a56b33baafc59.tar.bz2
rails-8603813ac6e1bff8d3addad58d0a56b33baafc59.zip
Fix memoize_all for methods with punctuation [#1175 state:resolved]
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activesupport/test/memoizable_test.rb')
-rw-r--r--activesupport/test/memoizable_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/test/memoizable_test.rb b/activesupport/test/memoizable_test.rb
index 135d56f14a..a78ebd9425 100644
--- a/activesupport/test/memoizable_test.rb
+++ b/activesupport/test/memoizable_test.rb
@@ -100,6 +100,11 @@ uses_mocha 'Memoizable' do
def test_memoization_with_punctuation
assert_equal true, @person.name?
+
+ assert_nothing_raised(NameError) do
+ @person.memoize_all
+ @person.unmemoize_all
+ end
end
def test_memoization_with_nil_value