aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/request_id_test.rb
diff options
context:
space:
mode:
authorArun Agrawal <arunagw@gmail.com>2011-10-22 16:30:48 +0530
committerArun Agrawal <arunagw@gmail.com>2011-10-22 16:30:48 +0530
commit50dfd58fdb10557d9f14dc22494f96cf55237330 (patch)
tree3ceea6078892e7f8c02f9c4e384bcb55d923bed6 /actionpack/test/dispatch/request_id_test.rb
parent3c3129993ad40768577371a0f389a54ff6db7f68 (diff)
downloadrails-50dfd58fdb10557d9f14dc22494f96cf55237330.tar.gz
rails-50dfd58fdb10557d9f14dc22494f96cf55237330.tar.bz2
rails-50dfd58fdb10557d9f14dc22494f96cf55237330.zip
Warnings removed from RequestIdTest
Diffstat (limited to 'actionpack/test/dispatch/request_id_test.rb')
-rw-r--r--actionpack/test/dispatch/request_id_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/request_id_test.rb b/actionpack/test/dispatch/request_id_test.rb
index ece8353810..b6e8b6c3ad 100644
--- a/actionpack/test/dispatch/request_id_test.rb
+++ b/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