Adds heading link on different heading message

This commit is contained in:
decabeza
2018-03-05 14:02:38 +01:00
parent 5745c4dda7
commit 0e9190bc43
7 changed files with 35 additions and 21 deletions

View File

@@ -226,7 +226,7 @@ feature 'Ballots' do
click_link "Districts"
click_link "District 2"
expect(page).to have_content("You have active votes in another heading")
expect(page).to have_content("You have active votes in another heading: District 1")
end
end
@@ -296,7 +296,7 @@ feature 'Ballots' do
visit budget_investments_path(budget, heading_id: new_york.id)
expect(page).not_to have_css "#progressbar"
expect(page).to have_content "You have active votes in another heading:"
expect(page).to have_content "You have active votes in another heading: California"
expect(page).to have_link california.name, href: budget_investments_path(budget, heading_id: california.id)
end