Skip to content

Commit

Permalink
Merge pull request #3404 from arunagw/warning_removed_request_id
Browse files Browse the repository at this point in the history
Warnings removed from RequestIdTest
  • Loading branch information
josevalim committed Oct 22, 2011
2 parents 3c31299 + 50dfd58 commit de17426
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/dispatch/request_id_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de17426

Please sign in to comment.