<%= t("votes.budget_investments.#{reason}",
verify_account: link_to(t("votes.verify_account"), verification_path),
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 86755181e..8548bdfca 100755
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -599,6 +599,12 @@ en:
organization: Organisations are not permitted to vote
unfeasible: Unfeasible investment projects can not be supported
not_voting_allowed: Voting phase is closed
+ budget_investments:
+ not_logged_in: You must %{signin} or %{signup} to continue.
+ not_verified: Only verified users can vote on proposals; %{verify_account}.
+ organization: Organisations are not permitted to vote
+ unfeasible: Unfeasible investment projects can not be supported
+ not_voting_allowed: Selecting phase is closed
welcome:
debates:
description: For meeting, discussing and sharing the things that matter to us in our city.
diff --git a/spec/features/budgets/votes_spec.rb b/spec/features/budgets/votes_spec.rb
index a83ad205a..dbcd36411 100644
--- a/spec/features/budgets/votes_spec.rb
+++ b/spec/features/budgets/votes_spec.rb
@@ -94,16 +94,16 @@ feature 'Votes' do
visit budget_investments_path(budget, heading_id: heading.id)
within("#budget_investment_#{investment.id}") do
- find("div.supports").hover
- expect_message_selecting_not_allowed
+ find("div.js-supports").hover
+ expect(page).to have_content 'No Selecting Allowed'
end
visit budget_investment_path(budget, investment)
within("#budget_investment_#{investment.id}") do
- find("div.supports").hover
- expect_message_selecting_not_allowed
+ find("div.js-supports").hover
+ expect(page).to have_content 'No Selecting Allowed'
end
end
end
-end
\ No newline at end of file
+end