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:
authorJames Lopez <james@jameslopez.es>2016-09-29 18:17:22 +0300
committerJames Lopez <james@jameslopez.es>2016-09-30 17:10:48 +0300
commit958d9f11e80633f7120a782900fe1f78b3dbebea (patch)
tree658d5fe96a37c1190f24615fee11382399dd1ff5 /spec/support
parent08bab4bbcd44ef7c5ff294d272a8ceb8571b4da7 (diff)
fix export project file permissions issue
Diffstat (limited to 'spec/support')
-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