Skip to content

Commit

Permalink
Build fix for logger_test
Browse files Browse the repository at this point in the history
Broke by d1cbcd7
  • Loading branch information
arunagw committed Sep 26, 2012
1 parent d1cbcd7 commit 0f08a7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions railties/test/application/rack/logger_test.rb
Expand Up @@ -29,25 +29,25 @@ def logs
test "logger logs proper HTTP GET verb and path" do test "logger logs proper HTTP GET verb and path" do
get "/blah" get "/blah"
wait wait
assert_match(/^Started GET "\/blah"/, logs[0]) assert_match(/^Started GET "\/blah"/, logs[1])
end end


test "logger logs proper HTTP HEAD verb and path" do test "logger logs proper HTTP HEAD verb and path" do
head "/blah" head "/blah"
wait wait
assert_match(/^Started HEAD "\/blah"/, logs[0]) assert_match(/^Started HEAD "\/blah"/, logs[1])
end end


test "logger logs HTTP verb override" do test "logger logs HTTP verb override" do
post "/", {:_method => 'put'} post "/", {:_method => 'put'}
wait wait
assert_match(/^Started PUT "\/"/, logs[0]) assert_match(/^Started PUT "\/"/, logs[1])
end end


test "logger logs HEAD requests" do test "logger logs HEAD requests" do
post "/", {:_method => 'head'} post "/", {:_method => 'head'}
wait wait
assert_match(/^Started HEAD "\/"/, logs[0]) assert_match(/^Started HEAD "\/"/, logs[1])
end end
end end
end end
Expand Down

0 comments on commit 0f08a7c

Please sign in to comment.