add test helper assert_sorted_equal
This commit is contained in:
parent
52a435b019
commit
36be37d7dc
@ -36,6 +36,10 @@ module Additionals
|
|||||||
end
|
end
|
||||||
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)
|
def assert_query_sort_order(table_css, column, action: nil)
|
||||||
action = :index if action.blank?
|
action = :index if action.blank?
|
||||||
column = column.to_s
|
column = column.to_s
|
||||||
|
Loading…
Reference in New Issue
Block a user