diff options
author | Vratislav Kalenda <v.kalenda@gmail.com> | 2017-10-08 22:11:36 +0200 |
---|---|---|
committer | Vratislav Kalenda <v.kalenda@gmail.com> | 2017-10-08 22:11:36 +0200 |
commit | 3b95f5881f24bf5fa9e9c2f2ffd37c2c82c4dce7 (patch) | |
tree | db69adcb38cf4f92fdd8a239ab524e3949772119 /spec/services/auth | |
parent | cd3fa2a709874c170eabc739f1b9a0f1f495685f (diff) | |
download | gitlab-ce-3b95f5881f24bf5fa9e9c2f2ffd37c2c82c4dce7.tar.gz |
fix lint
Diffstat (limited to 'spec/services/auth')
-rw-r--r-- | spec/services/auth/container_registry_authentication_service_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/services/auth/container_registry_authentication_service_spec.rb b/spec/services/auth/container_registry_authentication_service_spec.rb index b154779e1c7..2a147cd2773 100644 --- a/spec/services/auth/container_registry_authentication_service_spec.rb +++ b/spec/services/auth/container_registry_authentication_service_spec.rb @@ -42,13 +42,12 @@ describe Auth::ContainerRegistryAuthenticationService do end end end - + shared_examples 'a browsable' do let(:access) do [{ 'type' => 'registry', 'name' => 'catalog', - 'actions' => ['*'] - }] + 'actions' => ['*'] }] end it_behaves_like 'a valid token' @@ -140,7 +139,7 @@ describe Auth::ContainerRegistryAuthenticationService do it_behaves_like 'not a container repository factory' end end - + context 'for private project' do let(:project) { create(:project) } @@ -521,7 +520,6 @@ describe Auth::ContainerRegistryAuthenticationService do end it_behaves_like 'a browsable' - end context 'unauthorized' do @@ -578,6 +576,5 @@ describe Auth::ContainerRegistryAuthenticationService do it_behaves_like 'a forbidden' it_behaves_like 'not a container repository factory' end - end end |