Fix test environment pollution in spec/lib/gitlab/request_context_spec.rb
This commit is contained in:
parent
516987e4ba
commit
fcf418d67b
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue