提交 50dfd58f 编写于 作者: A Arun Agrawal

Warnings removed from RequestIdTest

上级 3c312999
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册