Skip to content

Commit

Permalink
Inline respec expected values.
Browse files Browse the repository at this point in the history
  • Loading branch information
robrap committed Sep 13, 2016
1 parent 8f49081 commit d64a211
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions spec/api/search_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d64a211

Please sign in to comment.