From 36be37d7dcc81838de661134b0b864aa2a795987 Mon Sep 17 00:00:00 2001 From: Alexander Meindl Date: Thu, 16 Dec 2021 15:17:44 +0100 Subject: [PATCH] add test helper assert_sorted_equal --- test/global_test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/global_test_helper.rb b/test/global_test_helper.rb index db64ee7b..637448fd 100644 --- a/test/global_test_helper.rb +++ b/test/global_test_helper.rb @@ -36,6 +36,10 @@ module Additionals end end + def assert_sorted_equal(list1, list2) + assert_equal list1.sort, list2.sort + end + def assert_query_sort_order(table_css, column, action: nil) action = :index if action.blank? column = column.to_s