Skip to content

Commit

Permalink
Warnings removed from RequestIdTest
Browse files Browse the repository at this point in the history
  • Loading branch information
arunagw committed Oct 22, 2011
1 parent 3c31299 commit 50dfd58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions actionpack/test/dispatch/request_id_test.rb
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 50dfd58

Please sign in to comment.