diff options
author | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-09-03 17:20:57 -0300 |
---|---|---|
committer | Alejandro RodrÃguez <alejorro70@gmail.com> | 2018-09-12 12:32:32 -0300 |
commit | d3c5b07962127be3b29e4602eef51abcb4c2c7b8 (patch) | |
tree | 529788aa536ca73777a939483717eba73a9be2ea /spec/lib/gitlab/import_export/repo_restorer_spec.rb | |
parent | a2be6536e9cd92f1fb3d842020136ca165fe9748 (diff) | |
download | gitlab-ce-d3c5b07962127be3b29e4602eef51abcb4c2c7b8.tar.gz |
Remove Rugged and shell code from Gitlab::Git
Diffstat (limited to 'spec/lib/gitlab/import_export/repo_restorer_spec.rb')
-rw-r--r-- | spec/lib/gitlab/import_export/repo_restorer_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/import_export/repo_restorer_spec.rb b/spec/lib/gitlab/import_export/repo_restorer_spec.rb index 7ffa84f906d..8a699eb1461 100644 --- a/spec/lib/gitlab/import_export/repo_restorer_spec.rb +++ b/spec/lib/gitlab/import_export/repo_restorer_spec.rb @@ -1,6 +1,8 @@ require 'spec_helper' describe Gitlab::ImportExport::RepoRestorer do + include GitHelpers + describe 'bundle a project Git repo' do let(:user) { create(:user) } let!(:project_with_repo) { create(:project, :repository, name: 'test-repo-restorer', path: 'test-repo-restorer') } @@ -36,9 +38,7 @@ describe Gitlab::ImportExport::RepoRestorer do it 'has the webhooks' do restorer.restore - Gitlab::GitalyClient::StorageSettings.allow_disk_access do - expect(Gitlab::Git::Hook.new('post-receive', project.repository.raw_repository)).to exist - end + expect(project_hook_exists?(project)).to be true end end end |