diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 15:52:24 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-04-03 15:52:24 +0200 |
commit | baa00d542478759be225a45dc805d0314e1921d2 (patch) | |
tree | 8a959e57256764f536fe36db0b6876171843b70d /spec/features/container_registry_spec.rb | |
parent | 0af4cbc57266cd7d2c433442c537da5c8970a3da (diff) | |
download | gitlab-ce-baa00d542478759be225a45dc805d0314e1921d2.tar.gz |
Refactor container registry repository tag stubs
Diffstat (limited to 'spec/features/container_registry_spec.rb')
-rw-r--r-- | spec/features/container_registry_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/features/container_registry_spec.rb b/spec/features/container_registry_spec.rb index 42431cbe731..fa7adbe71ea 100644 --- a/spec/features/container_registry_spec.rb +++ b/spec/features/container_registry_spec.rb @@ -12,7 +12,7 @@ describe "Container Registry" do login_as(user) project.add_developer(user) stub_container_registry_config(enabled: true) - stub_container_registry_tags(%w[latest]) + stub_container_registry_tags(repository: :any, tags: []) end context 'when there are no image repositories' do @@ -25,6 +25,7 @@ describe "Container Registry" do context 'when there are image repositories' do before do + stub_container_registry_tags(repository: %r{my/image}, tags: %w[latest]) project.container_repositories << container_repository end |