Skip to content

Commit

Permalink
Forget about old memoize immutable behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
josh committed Sep 13, 2009
1 parent 25f4129 commit 3b6bb46
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions activesupport/test/memoizable_test.rb
Expand Up @@ -124,16 +124,6 @@ def test_memoization_with_nil_value
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
Expand Down

0 comments on commit 3b6bb46

Please sign in to comment.