This project is archived and is in readonly mode.

#3834 ✓resolved
Santiago Pastorino

[PATCH] fragment caching TypeError can't modify frozen object

Reported by Santiago Pastorino | February 1st, 2010 @ 03:06 PM | in 2.3.6

Ruby 1.8.7 on 2-3-stable

(in /home/santiago/Documentos/WyeWorks/Proys/rails/actionpack)
Attempting to load Active Record... success
Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake/rake_test_loader
Started
....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................E...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Finished in 34.35891 seconds.

  1) Error:
test_fragment_for(FragmentCachingTest):
TypeError: can't modify frozen object
    ./test/../../activesupport/lib/active_support/core_ext/string/output_safety.rb:20:in `html_safe!'
    ./test/../lib/action_controller/caching/fragments.rb:40:in `fragment_for'
    ./test/controller/caching_test.rb:619:in `test_fragment_for'
    ./test/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `__send__'
    ./test/../../activesupport/lib/active_support/testing/setup_and_teardown.rb:62:in `run'

2468 tests, 11406 assertions, 0 failures, 1 errors
rake aborted!
Command failed with status (1): [/usr/bin/ruby1.8 -I"lib:test" "/usr/lib/ru...]

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Pages