Permalink
Browse files

Merge pull request #3404 from arunagw/warning_removed_request_id

Warnings removed from RequestIdTest
  • Loading branch information...
josevalim committed Oct 22, 2011
2 parents 3c31299 + 50dfd58 commit de17426980e76d1b0e191f5018d260a65abd3235
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 de17426

Please sign in to comment.