summaryrefslogtreecommitdiff
path: root/spec/support/import_export
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-09-29 17:17:22 +0200
committerJames Lopez <james@jameslopez.es>2016-09-30 16:10:48 +0200
commit958d9f11e80633f7120a782900fe1f78b3dbebea (patch)
tree658d5fe96a37c1190f24615fee11382399dd1ff5 /spec/support/import_export
parent08bab4bbcd44ef7c5ff294d272a8ceb8571b4da7 (diff)
downloadgitlab-ce-958d9f11e80633f7120a782900fe1f78b3dbebea.tar.gz
fix export project file permissions issue
Diffstat (limited to 'spec/support/import_export')
-rw-r--r--spec/support/import_export/export_file_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/import_export/export_file_helper.rb b/spec/support/import_export/export_file_helper.rb
index be0772d6a4a..1b0a4583f5c 100644
--- a/spec/support/import_export/export_file_helper.rb
+++ b/spec/support/import_export/export_file_helper.rb
@@ -130,4 +130,8 @@ module ExportFileHelper
(parsed_model_attributes - parent.keys - excluded_attributes).empty?
end
+
+ def file_permissions(file)
+ File.stat(file).mode & 0777
+ end
end