Simplify container repository build method specs

This commit is contained in:
Grzegorz Bizon 2017-04-03 13:05:46 +02:00
parent fd30b3d497
commit 0af4cbc572
1 changed files with 4 additions and 3 deletions

View File

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