Permalink
Browse files

Build fix for logger_test

Broke by d1cbcd7
  • Loading branch information...
1 parent d1cbcd7 commit 0f08a7c8d4e2f48f9061644f1d4c2385da0b27cc @arunagw committed Sep 26, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 railties/test/application/rack/logger_test.rb
@@ -29,25 +29,25 @@ def logs
test "logger logs proper HTTP GET verb and path" do
get "/blah"
wait
- assert_match(/^Started GET "\/blah"/, logs[0])
+ assert_match(/^Started GET "\/blah"/, logs[1])
end
test "logger logs proper HTTP HEAD verb and path" do
head "/blah"
wait
- assert_match(/^Started HEAD "\/blah"/, logs[0])
+ assert_match(/^Started HEAD "\/blah"/, logs[1])
end
test "logger logs HTTP verb override" do
post "/", {:_method => 'put'}
wait
- assert_match(/^Started PUT "\/"/, logs[0])
+ assert_match(/^Started PUT "\/"/, logs[1])
end
test "logger logs HEAD requests" do
post "/", {:_method => 'head'}
wait
- assert_match(/^Started HEAD "\/"/, logs[0])
+ assert_match(/^Started HEAD "\/"/, logs[1])
end
end
end

0 comments on commit 0f08a7c

Please sign in to comment.