write_fragment returns content if caching is disabled [#846 state:resolved]

This commit is contained in:
Joshua Peek
2008-11-22 13:19:11 -06:00
parent cd1a9ed991
commit 20d6fdd256
2 changed files with 12 additions and 12 deletions

View File

@@ -527,7 +527,7 @@ class FragmentCachingTest < ActionController::TestCase
def test_write_fragment_with_caching_disabled
assert_nil @store.read('views/name')
ActionController::Base.perform_caching = false
assert_equal nil, @controller.write_fragment('name', 'value')
assert_equal 'value', @controller.write_fragment('name', 'value')
assert_nil @store.read('views/name')
end