mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Make sure caching test is using a generatable url
This commit is contained in:
parent
81c421386c
commit
5bc47a93b7
1 changed files with 2 additions and 2 deletions
|
@ -441,8 +441,8 @@ class ActionCacheTest < ActionController::TestCase
|
|||
|
||||
def test_correct_content_type_is_returned_for_cache_hit
|
||||
# run it twice to cache it the first time
|
||||
get :index, :id => 'content-type.xml'
|
||||
get :index, :id => 'content-type.xml'
|
||||
get :index, :id => 'content-type', :format => 'xml'
|
||||
get :index, :id => 'content-type', :format => 'xml'
|
||||
assert_equal 'application/xml', @response.content_type
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue