提交 249084b4 编写于 作者: G Grzegorz Bizon

Fix some specs using the old ContainerImage const

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册