fix tmpdir

This commit is contained in:
James Lopez 2017-02-16 11:34:08 +01:00
parent b3fb5b4f26
commit 21aafcfc89
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ describe Gitlab::ImportExport::RepoRestorer, services: true do
let(:user) { create(:user) }
let!(:project_with_repo) { create(:project, :test_repo, name: 'test-repo-restorer', path: 'test-repo-restorer') }
let!(:project) { create(:empty_project) }
let(:export_path) { "#{Dir::tmpdir}/project_tree_saver_spec" }
let(:export_path) { "#{Dir.tmpdir}/project_tree_saver_spec" }
let(:shared) { Gitlab::ImportExport::Shared.new(relative_path: project.path_with_namespace) }
let(:bundler) { Gitlab::ImportExport::RepoSaver.new(project: project_with_repo, shared: shared) }
let(:bundle_path) { File.join(shared.export_path, Gitlab::ImportExport.project_bundle_filename) }