From 8603813ac6e1bff8d3addad58d0a56b33baafc59 Mon Sep 17 00:00:00 2001 From: Eugene Pimenov Date: Sun, 5 Oct 2008 17:24:52 -0500 Subject: Fix memoize_all for methods with punctuation [#1175 state:resolved] Signed-off-by: Joshua Peek --- activesupport/test/memoizable_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'activesupport/test/memoizable_test.rb') 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 -- cgit v1.2.3