diff options
author | Tarmo Tänav <tarmo@itech.ee> | 2008-07-14 20:23:23 -0500 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2008-07-14 20:23:23 -0500 |
commit | 911c2c381347ffb04615896ee6afe45277eeb103 (patch) | |
tree | 999da917148986101f8063b9109275535e138563 /activesupport/test | |
parent | 001c8beb4d0999a858a8b52ad511ee1251cc3517 (diff) | |
download | rails-911c2c381347ffb04615896ee6afe45277eeb103.tar.gz rails-911c2c381347ffb04615896ee6afe45277eeb103.tar.bz2 rails-911c2c381347ffb04615896ee6afe45277eeb103.zip |
Some performance tweaks to ActiveSupport::Memoizable
Signed-off-by: Joshua Peek <josh@joshpeek.com>
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/memoizable_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activesupport/test/memoizable_test.rb b/activesupport/test/memoizable_test.rb index 1b6cec2b2f..fc24a2942d 100644 --- a/activesupport/test/memoizable_test.rb +++ b/activesupport/test/memoizable_test.rb @@ -41,5 +41,9 @@ uses_mocha 'Memoizable' do person.freeze assert_equal nil, person.age end + + def test_double_memoization + assert_raise(RuntimeError) { Person.memoize :name } + end end end |