diff options
author | mortyccp <mortyccp@gmail.com> | 2018-12-30 18:06:43 +0300 |
---|---|---|
committer | mortyccp <mortyccp@gmail.com> | 2019-01-03 15:28:02 +0300 |
commit | 0e061adfcb880c3eac58630400c0cf647f247bd3 (patch) | |
tree | cf2a7c5d9bd38670cd50a972dd8ef116a4e3f97d /spec/lib | |
parent | 3a62f1565779ffc194dcf30e612fbcf8589f61ce (diff) |
Fix lint errors
Diffstat (limited to 'spec/lib')
-rw-r--r-- | spec/lib/gitlab/middleware/go_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/middleware/go_spec.rb b/spec/lib/gitlab/middleware/go_spec.rb index 3103dbd503e..f52095bf633 100644 --- a/spec/lib/gitlab/middleware/go_spec.rb +++ b/spec/lib/gitlab/middleware/go_spec.rb @@ -114,16 +114,16 @@ describe Gitlab::Middleware::Go do env['REMOTE_ADDR'] = "192.168.0.1" env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials(current_user.username, personal_access_token.token) end - + context 'with api scope' do it_behaves_like 'authenticated' end - + context 'with read_user scope' do before do personal_access_token.update_attribute(:scopes, [:read_user]) end - + it_behaves_like 'unauthorized' end end |