diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-07 20:54:53 -0400 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2010-06-08 14:47:02 -0400 |
commit | 585f8f27b190637fd0bad67d7d611eed5ae262e7 (patch) | |
tree | f072f100c847d275c1e079eb7fdeb8ff4ed1498b /actionpack/test | |
parent | eb69721c9bf2bd0f8957a231ecc91080b0645b84 (diff) | |
download | rails-585f8f27b190637fd0bad67d7d611eed5ae262e7.tar.gz rails-585f8f27b190637fd0bad67d7d611eed5ae262e7.tar.bz2 rails-585f8f27b190637fd0bad67d7d611eed5ae262e7.zip |
Fixed double output from cache in no caching mode
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/caching_test.rb | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 4431eb2e2a..c161bea945 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -644,21 +644,6 @@ class FragmentCachingTest < ActionController::TestCase assert_equal 'will not expire ;-)', @store.read('views/primalgrasp') end - def test_fragment_for_with_disabled_caching - @controller.perform_caching = false - - @store.write('views/expensive', 'fragment content') - fragment_computed = false - - view_context = @controller.view_context - - buffer = 'generated till now -> '.html_safe - buffer << view_context.send(:fragment_for, 'expensive') { fragment_computed = true } - - assert fragment_computed - assert_equal 'generated till now -> ', buffer - end - def test_fragment_for @store.write('views/expensive', 'fragment content') fragment_computed = false |