diff --git a/spec/api/search_spec.rb b/spec/api/search_spec.rb index e9a45552504..3382209134c 100644 --- a/spec/api/search_spec.rb +++ b/spec/api/search_spec.rb @@ -164,13 +164,11 @@ def check_sort(sort_key, expected_thread_indexes) end it "by date" do - asc_order = [0, 1, 2, 3, 4, 5] - check_sort("date", asc_order.reverse) + check_sort("date", [5, 4, 3, 2, 1, 0]) end it "by activity" do - asc_order = [0, 1, 2, 3, 4, 5] - check_sort("activity", asc_order.reverse) + check_sort("activity", [5, 4, 3, 2, 1, 0]) end it "by votes" do