Skip to content

Commit

Permalink
Ensure use_accept_header is enabled for test_action_cache_conditional…
Browse files Browse the repository at this point in the history
…_options
  • Loading branch information
josh committed Jul 11, 2008
1 parent d106f2d commit 04a87af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion actionpack/test/controller/caching_test.rb
Expand Up @@ -285,11 +285,12 @@ def test_action_cache_with_layout_and_layout_cache_false
end end


def test_action_cache_conditional_options def test_action_cache_conditional_options
old_use_accept_header = ActionController::Base.use_accept_header
ActionController::Base.use_accept_header = true ActionController::Base.use_accept_header = true
@request.env['HTTP_ACCEPT'] = 'application/json' @request.env['HTTP_ACCEPT'] = 'application/json'
get :index get :index
assert !fragment_exist?('hostname.com/action_caching_test') assert !fragment_exist?('hostname.com/action_caching_test')
ActionController::Base.use_accept_header = false ActionController::Base.use_accept_header = old_use_accept_header
end end


def test_action_cache_with_store_options def test_action_cache_with_store_options
Expand Down

0 comments on commit 04a87af

Please sign in to comment.