Commit 0af4cbc5 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Simplify container repository build method specs

parent fd30b3d4
...@@ -115,11 +115,12 @@ describe ContainerRepository do ...@@ -115,11 +115,12 @@ describe ContainerRepository do
end end
describe '.build_from_path' do describe '.build_from_path' do
let(:path) { project.full_path + '/some/image' } let(:registry_path) do
let(:repository_path) { ContainerRegistry::Path.new(path) } ContainerRegistry::Path.new(project.full_path + '/some/image')
end
let(:repository) do let(:repository) do
described_class.build_from_path(ContainerRegistry::Path.new(path)) described_class.build_from_path(registry_path)
end end
it 'fabricates repository assigned to a correct project' do it 'fabricates repository assigned to a correct project' do
......
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