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 ...@@ -39,7 +39,7 @@ describe "Container Registry" do
end end
it 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)
click_on 'Remove image' click_on 'Remove image'
end end
......
...@@ -100,7 +100,7 @@ describe Projects::DestroyService, services: true do ...@@ -100,7 +100,7 @@ describe Projects::DestroyService, services: true do
context 'images deletion succeeds' do context 'images deletion succeeds' do
it 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, {}) destroy_project(project, user, {})
end end
...@@ -108,7 +108,7 @@ describe Projects::DestroyService, services: true do ...@@ -108,7 +108,7 @@ describe Projects::DestroyService, services: true do
context 'images deletion fails' do context 'images deletion fails' do
before 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 end
subject { destroy_project(project, user, {}) } 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