Permalink
Browse files

Ensure use_accept_header is enabled for test_action_cache_conditional…

…_options
  • Loading branch information...
1 parent 15b2175 commit d106f2d08aad517c0bfa3a11e3eb87e14231e8ce @josh josh committed Jul 11, 2008
Showing with 2 additions and 0 deletions.
  1. +2 −0 actionpack/test/controller/caching_test.rb
@@ -285,9 +285,11 @@ def test_action_cache_with_layout_and_layout_cache_false
end
def test_action_cache_conditional_options
+ ActionController::Base.use_accept_header = true
@request.env['HTTP_ACCEPT'] = 'application/json'
get :index
assert !fragment_exist?('hostname.com/action_caching_test')
+ ActionController::Base.use_accept_header = false
end
def test_action_cache_with_store_options

0 comments on commit d106f2d

Please sign in to comment.