summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormortyccp <mortyccp@gmail.com>2018-12-30 23:06:43 +0800
committermortyccp <mortyccp@gmail.com>2019-01-03 20:28:02 +0800
commit0e061adfcb880c3eac58630400c0cf647f247bd3 (patch)
treecf2a7c5d9bd38670cd50a972dd8ef116a4e3f97d
parent3a62f1565779ffc194dcf30e612fbcf8589f61ce (diff)
downloadgitlab-ce-0e061adfcb880c3eac58630400c0cf647f247bd3.tar.gz
Fix lint errors
-rw-r--r--spec/lib/gitlab/middleware/go_spec.rb6
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