Permalink
Browse files

Removed warnings.

1. Change in test name as already defined.
2. ambiguous first argument; put parentheses or 
even spaces
  • Loading branch information...
1 parent 26a4e5e commit 6f6111e089407d46a634a6a6c863b04682813401 @arunagw arunagw committed Jun 21, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/test/controller/render_test.rb
@@ -1526,10 +1526,10 @@ def test_expires_now
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

0 comments on commit 6f6111e

Please sign in to comment.