diff options
author | James Lopez <james@jameslopez.es> | 2018-09-07 14:42:49 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2018-09-07 14:42:49 +0300 |
commit | 27442862cf81881c81552e64d0b4d3354535c45e (patch) | |
tree | a05e89cdad1f455971748b74f4092ca3992de8b8 /spec/support/import_export | |
parent | a2aa505805478540b3150b2f9093c8658e18597d (diff) |
refactor code based on feedback
Diffstat (limited to 'spec/support/import_export')
-rw-r--r-- | spec/support/import_export/export_file_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/import_export/export_file_helper.rb b/spec/support/import_export/export_file_helper.rb index cbe238e20ea..248d34e59dd 100644 --- a/spec/support/import_export/export_file_helper.rb +++ b/spec/support/import_export/export_file_helper.rb @@ -52,7 +52,7 @@ module ExportFileHelper # Expands the compressed file for an exported project into +tmpdir+ def in_directory_with_expanded_export(project) Dir.mktmpdir do |tmpdir| - export_file = project.import_export_upload.export_file.path + export_file = project.export_file.path _output, exit_status = Gitlab::Popen.popen(%W{tar -zxf #{export_file} -C #{tmpdir}}) yield(exit_status, tmpdir) |