Commit 01280a5a authored by Grzegorz Bizon's avatar Grzegorz Bizon

Add missing test example for container repository tags

parent 10b0fb1b
......@@ -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
......
......@@ -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',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment