Permalink
Browse files

Warnings removed from RequestIdTest

  • Loading branch information...
1 parent 3c31299 commit 50dfd58fdb10557d9f14dc22494f96cf55237330 @arunagw arunagw committed Oct 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/dispatch/request_id_test.rb
@@ -14,13 +14,13 @@ class RequestIdTest < ActiveSupport::TestCase
end
test "generating a request id when none is supplied" do
- assert_match /\w+/, stub_request.uuid
+ assert_match(/\w+/, stub_request.uuid)
end
private
def stub_request(env = {})
- ActionDispatch::RequestId.new(lambda { |env| [ 200, env, [] ] }).call(env)
+ ActionDispatch::RequestId.new(lambda { |environment| [ 200, environment, [] ] }).call(env)
ActionDispatch::Request.new(env)
end
end

0 comments on commit 50dfd58

Please sign in to comment.