diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-06-21 23:21:34 +0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-06-24 03:46:50 +0200 |
commit | b6118afd889fd5f04f7cd16afa413d132236ca44 (patch) | |
tree | 68ce2a9d1397afe9f31fd4f25e0a799bb298de17 /spec | |
parent | 6b86ce75cf5b716370611f2bccea2b4590d7ce34 (diff) | |
download | gitlab-ce-b6118afd889fd5f04f7cd16afa413d132236ca44.tar.gz |
Fixed DestroyService spec to actually test if removal was successfulbackport-destroy-service-spec-fixes
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/projects/destroy_service_spec.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/services/projects/destroy_service_spec.rb b/spec/services/projects/destroy_service_spec.rb index 0d6dd28e332..697dc18feb0 100644 --- a/spec/services/projects/destroy_service_spec.rb +++ b/spec/services/projects/destroy_service_spec.rb @@ -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 |