Fix extra parameter in have_link

The second parameter was ignored. Besides, we changed the place where
the link pointed to in commit fcbb11b2.
This commit is contained in:
Javi Martín
2019-10-23 17:23:53 +02:00
parent b31f853bc6
commit 13793d89c3

View File

@@ -51,7 +51,7 @@ describe "Admin Budgets" do
visit admin_budgets_path
within "#budget_#{budget.id}" do
expect(page).to have_link("Admin ballots", admin_poll_path(poll))
expect(page).to have_link "Admin ballots", href: admin_poll_booth_assignments_path(poll)
end
end