mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Blah, SecureRandom#uuid is not supported in 1.8.7 -- cant wait for Rails 4.0 to drop compatibility with 1.8.x
This commit is contained in:
@@ -33,7 +33,7 @@ module ActionDispatch
|
||||
end
|
||||
|
||||
def internal_request_id
|
||||
SecureRandom.uuid
|
||||
SecureRandom.hex(16)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -14,7 +14,7 @@ class RequestIdTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
test "generating a request id when none is supplied" do
|
||||
assert_match /\w+-\w+-\w+-\w+-\w+/, stub_request.uuid
|
||||
assert_match /\w+/, stub_request.uuid
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
Reference in New Issue
Block a user