From 130c9b71aa7e52cfac011c0c4ee7d24a1b2dcb4e Mon Sep 17 00:00:00 2001 From: Sebastian Martinez Date: Mon, 23 May 2011 21:45:00 -0300 Subject: Parenthesize arguments when the first one is a Regexp literal. This fixes 'warning: ambiguous first argument; put parentheses or even spaces'. --- railties/test/application/rack/logger_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'railties/test/application/rack/logger_test.rb') diff --git a/railties/test/application/rack/logger_test.rb b/railties/test/application/rack/logger_test.rb index a29244357c..715af5c642 100644 --- a/railties/test/application/rack/logger_test.rb +++ b/railties/test/application/rack/logger_test.rb @@ -21,19 +21,19 @@ module ApplicationTests test "logger logs proper HTTP verb and path" do get "/blah" wait - assert_match /^Started GET "\/blah"/, logs[0] + assert_match(/^Started GET "\/blah"/, logs[0]) end test "logger logs HTTP verb override" do post "/", {:_method => 'put'} wait - assert_match /^Started PUT "\/"/, logs[0] + assert_match(/^Started PUT "\/"/, logs[0]) end test "logger logs HEAD requests" do post "/", {:_method => 'head'} wait - assert_match /^Started HEAD "\/"/, logs[0] + assert_match(/^Started HEAD "\/"/, logs[0]) end end end -- cgit v1.2.3