summaryrefslogtreecommitdiff
path: root/spec/support/import_export/export_file_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/import_export/export_file_helper.rb')
-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