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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/support/import_export/project_tree_expectations.rb b/spec/support/import_export/project_tree_expectations.rb
index 2423a58a3e6..0049d0fbd06 100644
--- a/spec/support/import_export/project_tree_expectations.rb
+++ b/spec/support/import_export/project_tree_expectations.rb
@@ -59,7 +59,7 @@ module ImportExport
end
def match_arrays(left_node, right_node, stats, location_stack, failures)
- has_simple_elements = left_node.none? { |el| Enumerable === el }
+ has_simple_elements = left_node.none?(Enumerable)
# for simple types, we can do a direct order-less set comparison
if has_simple_elements && left_node.to_set != right_node.to_set
stats[:arrays][:direct] += 1