vendor/rails/actionpack/test/controller/caching_test.rb in radiantcms-couchrest_model-0.1.4 vs vendor/rails/actionpack/test/controller/caching_test.rb in radiantcms-couchrest_model-0.1.5

- old
+ new

@@ -602,39 +602,25 @@ ActionController::Base.perform_caching = false @store.write('views/expensive', 'fragment content') fragment_computed = false - buffer = 'generated till now -> '.html_safe + buffer = 'generated till now -> ' @controller.fragment_for(buffer, '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 - buffer = 'generated till now -> '.html_safe + buffer = 'generated till now -> ' @controller.fragment_for(buffer, 'expensive') { fragment_computed = true } assert !fragment_computed assert_equal 'generated till now -> fragment content', buffer - end - - def test_html_safety - assert_nil @store.read('views/name') - content = 'value'.html_safe - assert_equal content, @controller.write_fragment('name', content) - - cached = @store.read('views/name') - assert_equal content, cached - assert_equal String, cached.class - - html_safe = @controller.read_fragment('name') - assert_equal content, html_safe - assert html_safe.html_safe? end end class FunctionalCachingController < ActionController::Base def fragment_cached