diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-12 12:09:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-04-12 12:09:09 +0300 |
commit | ede2fbdc8734f095d371614d362b5ae373d6a243 (patch) | |
tree | 187152bbc2a4f24aae99d30a78ca9b06cc0468a8 /spec/support/import_export | |
parent | 4044a01bd7e32c814217b34c512c3dd02202ea29 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/support/import_export')
-rw-r--r-- | spec/support/import_export/project_tree_expectations.rb | 4 |
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 |