From fcf418d67bce0dd6d6c07e7f61cf10b06d435d7c Mon Sep 17 00:00:00 2001 From: Nick Thomas Date: Thu, 14 Mar 2019 11:51:09 +0000 Subject: [PATCH] Fix test environment pollution in spec/lib/gitlab/request_context_spec.rb --- spec/lib/gitlab/request_context_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/gitlab/request_context_spec.rb b/spec/lib/gitlab/request_context_spec.rb index 3ed57c2c916..23e45aff1c5 100644 --- a/spec/lib/gitlab/request_context_spec.rb +++ b/spec/lib/gitlab/request_context_spec.rb @@ -25,7 +25,7 @@ describe Gitlab::RequestContext do [200, {}, ["Hello"]] end - Rails.application.middleware.build(endpoint).call(env) + described_class.new(endpoint).call(env) expect(client_ip).to eq(load_balancer_ip) end