From 7d69f2aaabaf0339cd39ee4cbea3c5dafb2f5a47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 21 Sep 2018 13:48:29 +0200 Subject: [PATCH] Properly test order by ID By default records are already ordered by ID, so we weren't checking the ordering by ID functionality was working properly. Making the records be ordered by title first makes the test a bit more reliable. --- spec/features/admin/legislation/proposals_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/admin/legislation/proposals_spec.rb b/spec/features/admin/legislation/proposals_spec.rb index 394a32ad7..efd754b8a 100644 --- a/spec/features/admin/legislation/proposals_spec.rb +++ b/spec/features/admin/legislation/proposals_spec.rb @@ -73,7 +73,7 @@ feature 'Admin legislation processes' do proposal1 = create(:legislation_proposal, title: 'bbbb', cached_votes_up: 10, legislation_process_id: legislation_process.id) proposal2 = create(:legislation_proposal, title: 'aaaa', cached_votes_up: 20, legislation_process_id: legislation_process.id) proposal3 = create(:legislation_proposal, title: 'cccc', cached_votes_up: 30, legislation_process_id: legislation_process.id) - visit admin_legislation_process_proposals_path(legislation_process.id) + visit admin_legislation_process_proposals_path(legislation_process.id, order: :title) select "Id", from: "order-selector-participation"