Fix test environment pollution in spec/lib/gitlab/request_context_spec.rb

This commit is contained in:
Nick Thomas 2019-03-14 11:51:09 +00:00
parent 516987e4ba
commit fcf418d67b
No known key found for this signature in database
GPG key ID: 2A313A47AFADACE9

View file

@ -25,7 +25,7 @@ describe Gitlab::RequestContext do
[200, {}, ["Hello"]] [200, {}, ["Hello"]]
end end
Rails.application.middleware.build(endpoint).call(env) described_class.new(endpoint).call(env)
expect(client_ip).to eq(load_balancer_ip) expect(client_ip).to eq(load_balancer_ip)
end end