From 1a459e8e7d9f32e6c3a55153e8e1cfabef881839 Mon Sep 17 00:00:00 2001 From: Rick Olson Date: Mon, 20 Aug 2007 01:12:43 +0000 Subject: Fix bug where action caching sets the content type to the ActionCachePath object. Closes #9282 [mindforge] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7346 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/caching_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb index 29fa0074f7..a9bc0471df 100644 --- a/actionpack/test/controller/caching_test.rb +++ b/actionpack/test/controller/caching_test.rb @@ -279,6 +279,11 @@ class ActionCacheTest < Test::Unit::TestCase assert_equal 'xml', path_object.extension assert_equal 'example.org/posts/index.xml', path_object.path end + + def test_correct_content_type_is_returned_for_cache_hit + get :index, :id => 'content-type.xml' + assert_equal 'application/xml', @response.content_type + end def test_empty_path_is_normalized @mock_controller.mock_url_for = 'http://example.org/' -- cgit v1.2.3