Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/projects/import_export/import_file_spec.rb')
-rw-r--r--spec/features/projects/import_export/import_file_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/features/projects/import_export/import_file_spec.rb b/spec/features/projects/import_export/import_file_spec.rb
index 3c94272b605..a3f612aa888 100644
--- a/spec/features/projects/import_export/import_file_spec.rb
+++ b/spec/features/projects/import_export/import_file_spec.rb
@@ -3,6 +3,8 @@ require 'spec_helper'
feature 'Import/Export - project import integration test', feature: true, js: true do
include Select2Helper
+ let(:gitlab_shell) { Gitlab::Shell.new }
+ let(:repository_storage_path) { Gitlab.config.repositories.storages['default']['path'] }
let(:file) { File.join(Rails.root, 'spec', 'features', 'projects', 'import_export', 'test_project_export.tar.gz') }
let(:export_path) { "#{Dir.tmpdir}/import_file_spec" }
@@ -12,6 +14,8 @@ feature 'Import/Export - project import integration test', feature: true, js: tr
after(:each) do
FileUtils.rm_rf(export_path, secure: true)
+ gitlab_shell.remove_repository(repository_storage_path, 'asd/test-project-path')
+ gitlab_shell.remove_repository(repository_storage_path, 'asd/test-project-path.wiki')
end
context 'when selecting the namespace' do