From 6f6111e089407d46a634a6a6c863b04682813401 Mon Sep 17 00:00:00 2001 From: Arun Agrawal Date: Thu, 21 Jun 2012 17:00:19 +0530 Subject: Removed warnings. 1. Change in test name as already defined. 2. ambiguous first argument; put parentheses or even spaces --- actionpack/test/controller/render_test.rb | 6 +++--- 1 file 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 -- cgit v1.2.3