diff options
author | mortyccp <mortyccp@gmail.com> | 2018-12-02 12:48:11 +0800 |
---|---|---|
committer | mortyccp <mortyccp@gmail.com> | 2019-01-03 20:28:02 +0800 |
commit | b7e0a09de22eac10cba64c8980c2854efb2731c1 (patch) | |
tree | 02a4d3030858abdcfccc6a0a79c93eda1530e30d /spec | |
parent | 970582079ad9384920b69957cfd0a6dc92ed4404 (diff) | |
download | gitlab-ce-b7e0a09de22eac10cba64c8980c2854efb2731c1.tar.gz |
Fix rspec error in rails 4
Diffstat (limited to 'spec')
-rw-r--r-- | spec/lib/gitlab/middleware/go_spec.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/lib/gitlab/middleware/go_spec.rb b/spec/lib/gitlab/middleware/go_spec.rb index 3a34f238937..b43eab5e2fd 100644 --- a/spec/lib/gitlab/middleware/go_spec.rb +++ b/spec/lib/gitlab/middleware/go_spec.rb @@ -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 |