mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #3404 from arunagw/warning_removed_request_id
Warnings removed from RequestIdTest
This commit is contained in:
commit
de17426980
1 changed files with 2 additions and 2 deletions
|
@ -14,13 +14,13 @@ class RequestIdTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
test "generating a request id when none is supplied" do
|
test "generating a request id when none is supplied" do
|
||||||
assert_match /\w+/, stub_request.uuid
|
assert_match(/\w+/, stub_request.uuid)
|
||||||
end
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def stub_request(env = {})
|
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)
|
ActionDispatch::Request.new(env)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue