diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 18:07:49 -0500 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-16 18:07:49 -0500 |
commit | 04933fd572f60909e8dbd14bd9366e96dc40806e (patch) | |
tree | 12339989cb98d87172accb24b7c10b2d9dde39d5 /spec/features/container_registry_spec.rb | |
parent | 8572a6b2d469009f01533b1003e73952bd2b6850 (diff) | |
download | gitlab-ce-04933fd572f60909e8dbd14bd9366e96dc40806e.tar.gz |
Use container registry config stub
Diffstat (limited to 'spec/features/container_registry_spec.rb')
-rw-r--r-- | spec/features/container_registry_spec.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/features/container_registry_spec.rb b/spec/features/container_registry_spec.rb index 271ef883d13..53b4f027117 100644 --- a/spec/features/container_registry_spec.rb +++ b/spec/features/container_registry_spec.rb @@ -5,17 +5,12 @@ describe "Container Registry" do let(:repository) { project.container_registry_repository } let(:tag_name) { 'latest' } let(:tags) { [tag_name] } - let(:registry_settings) do - { - enabled: true - } - end before do login_as(:user) project.team << [@user, :developer] stub_container_registry_tags(*tags) - allow(Gitlab.config.registry).to receive_messages(registry_settings) + stub_container_registry_config(enabled: true) allow(Auth::ContainerRegistryAuthenticationService).to receive(:full_access_token).and_return('token') end |