aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/caching_test.rb
diff options
context:
space:
mode:
authorRick Olson <technoweenie@gmail.com>2007-08-20 13:48:13 +0000
committerRick Olson <technoweenie@gmail.com>2007-08-20 13:48:13 +0000
commit0fc77b3928546c09bd1fac40402289fd3730840b (patch)
tree7e3cbc8575c61345b68bd8f902eab541686a4093 /actionpack/test/controller/caching_test.rb
parent1a459e8e7d9f32e6c3a55153e8e1cfabef881839 (diff)
downloadrails-0fc77b3928546c09bd1fac40402289fd3730840b.tar.gz
rails-0fc77b3928546c09bd1fac40402289fd3730840b.tar.bz2
rails-0fc77b3928546c09bd1fac40402289fd3730840b.zip
correct the ActionCacheTest from [7346]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7348 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller/caching_test.rb')
-rw-r--r--actionpack/test/controller/caching_test.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/test/controller/caching_test.rb b/actionpack/test/controller/caching_test.rb
index a9bc0471df..43babca5ab 100644
--- a/actionpack/test/controller/caching_test.rb
+++ b/actionpack/test/controller/caching_test.rb
@@ -281,6 +281,8 @@ class ActionCacheTest < Test::Unit::TestCase
end
def test_correct_content_type_is_returned_for_cache_hit
+ # run it twice to cache it the first time
+ get :index, :id => 'content-type.xml'
get :index, :id => 'content-type.xml'
assert_equal 'application/xml', @response.content_type
end