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

Fix some specs using the old ContainerImage const

parent f451173a
Branches
Tags
1 merge request!10109Multi-level container registry images
Pipeline #
Loading
Loading
@@ -39,7 +39,7 @@ describe "Container Registry" do
end
 
it do
expect_any_instance_of(ContainerImage).to receive(:delete_tags).and_return(true)
expect_any_instance_of(ContainerRepository).to receive(:delete_tags).and_return(true)
 
click_on 'Remove image'
end
Loading
Loading
Loading
Loading
@@ -100,7 +100,7 @@ describe Projects::DestroyService, services: true do
 
context 'images deletion succeeds' do
it do
expect_any_instance_of(ContainerImage).to receive(:delete_tags).and_return(true)
expect_any_instance_of(ContainerRepository).to receive(:delete_tags).and_return(true)
 
destroy_project(project, user, {})
end
Loading
Loading
@@ -108,7 +108,7 @@ describe Projects::DestroyService, services: true do
 
context 'images deletion fails' do
before do
expect_any_instance_of(ContainerImage).to receive(:delete_tags).and_return(false)
expect_any_instance_of(ContainerRepository).to receive(:delete_tags).and_return(false)
end
 
subject { destroy_project(project, user, {}) }
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment