summaryrefslogtreecommitdiff
path: root/spec/support/import_export/project_tree_expectations.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/import_export/project_tree_expectations.rb')
-rw-r--r--spec/support/import_export/project_tree_expectations.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/import_export/project_tree_expectations.rb b/spec/support/import_export/project_tree_expectations.rb
index 966c977e8e9..2423a58a3e6 100644
--- a/spec/support/import_export/project_tree_expectations.rb
+++ b/spec/support/import_export/project_tree_expectations.rb
@@ -97,13 +97,13 @@ module ImportExport
def normalize_elements(elem)
case elem
when Hash
- elem.map do |key, value|
+ elem.to_h do |key, value|
if ignore_key?(key, value)
[key, :ignored]
else
[key, normalize_elements(value)]
end
- end.to_h
+ end
when Array
elem.map { |a| normalize_elements(a) }
else