1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Ensure use_accept_header is enabled for test_action_cache_conditional_options

This commit is contained in:
Joshua Peek 2008-07-11 11:51:35 -05:00
parent d106f2d08a
commit 04a87af5b7

View file

@ -285,11 +285,12 @@ class ActionCacheTest < Test::Unit::TestCase
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