summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-10 13:07:36 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-04-10 13:07:36 +0200
commit7ec3c2dcee9da79dfa8d034377fe9462ff8e5b0b (patch)
treea24e46b1b3e545741d1388f80406236c51a08df5 /spec
parent046f4086e4e1ba7c4f47215d30c9c470bb0a67a4 (diff)
downloadgitlab-ce-7ec3c2dcee9da79dfa8d034377fe9462ff8e5b0b.tar.gz
Add method that returns location of registry image
Diffstat (limited to 'spec')
-rw-r--r--spec/lib/container_registry/tag_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/lib/container_registry/tag_spec.rb b/spec/lib/container_registry/tag_spec.rb
index bc1912d8e6c..f8fffbdca41 100644
--- a/spec/lib/container_registry/tag_spec.rb
+++ b/spec/lib/container_registry/tag_spec.rb
@@ -50,6 +50,13 @@ describe ContainerRegistry::Tag do
end
end
+ describe '#location' do
+ it 'returns a full location of the tag' do
+ expect(tag.location)
+ .to eq 'registry.gitlab/group/test:tag'
+ end
+ end
+
context 'manifest processing' do
context 'schema v1' do
before do