diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index 4a795de5a2..6bebe7e1ed 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -1526,10 +1526,10 @@ class ExpiresInRenderTest < ActionController::TestCase assert_equal "no-cache", @response.headers["Cache-Control"] end - def test_expires_now + def test_expires_now_with_cache_control_headers get :conditional_hello_with_cache_control_headers - assert_match /no-cache/, @response.headers["Cache-Control"] - assert_match /no-transform/, @response.headers["Cache-Control"] + assert_match(/no-cache/, @response.headers["Cache-Control"]) + assert_match(/no-transform/, @response.headers["Cache-Control"]) end def test_date_header_when_expires_in |