aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/memoizable_test.rb
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-09-13 13:08:12 -0500
committerJoshua Peek <josh@joshpeek.com>2009-09-13 13:08:12 -0500
commit3b6bb4664f102e4c852fe830e4de45a8d0587f41 (patch)
tree372209306e619694823c9e2a884c07fc4de7f7c6 /activesupport/test/memoizable_test.rb
parent25f4129151070f8c237ea3092a5da59253a1a2fc (diff)
downloadrails-3b6bb4664f102e4c852fe830e4de45a8d0587f41.tar.gz
rails-3b6bb4664f102e4c852fe830e4de45a8d0587f41.tar.bz2
rails-3b6bb4664f102e4c852fe830e4de45a8d0587f41.zip
Forget about old memoize immutable behavior
Diffstat (limited to 'activesupport/test/memoizable_test.rb')
-rw-r--r--activesupport/test/memoizable_test.rb10
1 files changed, 0 insertions, 10 deletions
diff --git a/activesupport/test/memoizable_test.rb b/activesupport/test/memoizable_test.rb
index 214e243aa5..3bad683093 100644
--- a/activesupport/test/memoizable_test.rb
+++ b/activesupport/test/memoizable_test.rb
@@ -124,16 +124,6 @@ class MemoizableTest < ActiveSupport::TestCase
assert_equal 1, @person.age_calls
end
- def test_memorized_results_are_immutable
- # This is purely a performance enhancement that we can revisit once the rest of
- # the code is in place. Ideally, we'd be able to do memoization in a freeze-friendly
- # way without amc hacks
- pending do
- assert_equal "Josh", @person.name
- assert_raise(ActiveSupport::FrozenObjectError) { @person.name.gsub!("Josh", "Gosh") }
- end
- end
-
def test_reloadable
counter = @calculator.counter
assert_equal 1, @calculator.counter