fixes link in investments index header
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
<%= t("budgets.investments.header.different_heading_assigned_html",
|
||||
heading_link: link_to(
|
||||
@assigned_heading.name,
|
||||
budget_investments_path(@budget, heading: @assigned_heading))
|
||||
budget_investments_path(@budget, heading_id: @assigned_heading.try(:id)))
|
||||
) %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -297,7 +297,7 @@ feature 'Ballots' do
|
||||
|
||||
expect(page).to_not have_css "#progressbar"
|
||||
expect(page).to have_content "You have active votes in another heading:"
|
||||
expect(page).to have_link california.name, href: budget_investments_path(budget, heading: california)
|
||||
expect(page).to have_link california.name, href: budget_investments_path(budget, heading_id: california)
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user