Commit c9aa2663 authored by Stan Hu's avatar Stan Hu

Work around expect_any_instance_of failures with prepended modules

parent 19791bf7
......@@ -18,7 +18,7 @@ describe Users::DestroyService, services: true do
end
it 'will delete the project' do
expect_any_instance_of(Projects::DestroyService).to receive(:execute).once
expect_any_instance_of(EE::Projects::DestroyService).to receive(:execute).once
service.execute(user)
end
......@@ -31,7 +31,7 @@ describe Users::DestroyService, services: true do
end
it 'destroys a project in pending_delete' do
expect_any_instance_of(Projects::DestroyService).to receive(:execute).once
expect_any_instance_of(EE::Projects::DestroyService).to receive(:execute).once
service.execute(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