Skip to content
Snippets Groups Projects
Commit 01280a5a authored by Grzegorz Bizon's avatar Grzegorz Bizon
Browse files

Add missing test example for container repository tags

parent 10b0fb1b
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -43,8 +43,6 @@ class ContainerRepository < ActiveRecord::Base
ContainerRegistry::Blob.new(self, config)
end
 
# TODO, specs needed
#
def has_tags?
tags.to_a.any?
end
Loading
Loading
Loading
Loading
@@ -57,6 +57,12 @@ describe ContainerRepository do
it { is_expected.not_to be_empty }
end
 
describe '#has_tags?' do
it 'has tags' do
expect(container_repository).to have_tags
end
end
describe '#delete_tags!' do
let(:container_repository) do
create(:container_repository, name: 'my_image',
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment