Fixed DestroyService spec to actually test if removal was successful
This commit is contained in:
parent
6b86ce75cf
commit
b6118afd88
1 changed files with 3 additions and 2 deletions
|
@ -15,8 +15,9 @@ describe Projects::DestroyService, services: true do
|
|||
shared_examples 'deleting the project' do
|
||||
it 'deletes the project' do
|
||||
expect(Project.unscoped.all).not_to include(project)
|
||||
expect(Dir.exist?(path)).to be_falsey
|
||||
expect(Dir.exist?(remove_path)).to be_falsey
|
||||
|
||||
expect(project.gitlab_shell.exists?(project.repository_storage_path, path + '.git')).to be_falsey
|
||||
expect(project.gitlab_shell.exists?(project.repository_storage_path, remove_path + '.git')).to be_falsey
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue