Permalink
Browse files

Ensure use_accept_header is enabled for test_action_cache_conditional…

…_options
  • Loading branch information...
1 parent d106f2d commit 04a87af5b7abd00e74b96c5b1bb789d4484da6d9 @josh josh committed Jul 11, 2008
Showing with 2 additions and 1 deletion.
  1. +2 −1 actionpack/test/controller/caching_test.rb
@@ -285,11 +285,12 @@ def test_action_cache_with_layout_and_layout_cache_false
end
def test_action_cache_conditional_options
+ old_use_accept_header = ActionController::Base.use_accept_header
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
+ ActionController::Base.use_accept_header = old_use_accept_header
end
def test_action_cache_with_store_options

0 comments on commit 04a87af

Please sign in to comment.