Commit b7e0a09d authored by mortyccp's avatar mortyccp

Fix rspec error in rails 4

parent 97058207
......@@ -140,6 +140,7 @@ describe Gitlab::Middleware::Go do
let(:personal_access_token) { create(:personal_access_token, user: current_user) }
before do
env['REMOTE_ADDR'] = "192.168.0.1"
env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(current_user.username, personal_access_token.token)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment