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:
parent
d106f2d08a
commit
04a87af5b7
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue