Commit 249084b4 authored by Grzegorz Bizon's avatar Grzegorz Bizon

Fix some specs using the old ContainerImage const

parent f451173a
......@@ -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
......
......@@ -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
......@@ -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, {}) }
......
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