add test helper assert_sorted_equal

This commit is contained in:
Alexander Meindl 2021-12-16 15:17:44 +01:00
parent 52a435b019
commit 36be37d7dc

View File

@ -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