diff --git a/config/locales/budgets.en.yml b/config/locales/budgets.en.yml
index 191a41f14..399ab432c 100644
--- a/config/locales/budgets.en.yml
+++ b/config/locales/budgets.en.yml
@@ -8,13 +8,13 @@ en:
no_balloted_group_yet: "You have not voted on this group yet, go vote!"
remove: Remove vote
voted_html:
- one: "You have voted one proposal."
- other: "You have voted %{count} proposals."
+ one: "You have voted one investment."
+ other: "You have voted %{count} investments."
voted_info_html: "You can change your vote at any time until the close of this phase.
No need to invest all the money available."
zero: You have not voted any investment project.
reasons_for_not_balloting:
not_logged_in: You must %{signin} or %{signup} to continue.
- not_verified: Only verified users can vote on proposals; %{verify_account}.
+ not_verified: Only verified users can vote on investments; %{verify_account}.
organization: Organizations are not permitted to vote
not_selected: Unselected investment projects can not be supported
not_enough_money: "Price is higher than the available amount left."
diff --git a/spec/features/budgets/ballots_spec.rb b/spec/features/budgets/ballots_spec.rb
index 11623d23b..b7471ee41 100644
--- a/spec/features/budgets/ballots_spec.rb
+++ b/spec/features/budgets/ballots_spec.rb
@@ -101,7 +101,7 @@ feature 'Ballots' do
context "Adding and Removing Investments" do
- scenario "Add a proposal", :js do
+ scenario "Add a investment", :js do
investment1 = create(:budget_investment, :selected, heading: new_york, price: 10000)
investment2 = create(:budget_investment, :selected, heading: new_york, price: 20000)
@@ -130,7 +130,7 @@ feature 'Ballots' do
end
end
- scenario "Removing a proposal", :js do
+ scenario "Removing a investment", :js do
investment = create(:budget_investment, :selected, heading: new_york, price: 10000)
ballot = create(:budget_ballot, user: user, budget: budget)
ballot.investments << investment
@@ -335,7 +335,7 @@ feature 'Ballots' do
login_as(user)
visit budget_ballot_path(budget)
- expect(page).to have_content("You have voted 5 proposals")
+ expect(page).to have_content("You have voted 5 investments")
within("#budget_group_#{group1.id}") do
expect(page).to have_content "#{group1.name} - #{heading1.name}"
@@ -372,14 +372,14 @@ feature 'Ballots' do
login_as(user)
visit budget_ballot_path(budget)
- expect(page).to have_content("You have voted one proposal")
+ expect(page).to have_content("You have voted one investment")
within("#budget_investment_#{investment.id}") do
find(".remove-investment-project").trigger('click')
end
expect(current_path).to eq(budget_ballot_path(budget))
- expect(page).to have_content("You have voted 0 proposals")
+ expect(page).to have_content("You have voted 0 investments")
end
scenario 'Removing investments from ballot (sidebar)', :js do
@@ -428,13 +428,13 @@ feature 'Ballots' do
click_link "Check my ballot"
- expect(page).to have_content("You have voted one proposal")
+ expect(page).to have_content("You have voted one investment")
within("#budget_investment_#{investment.id}") do
find(".remove-investment-project").trigger('click')
end
- expect(page).to have_content("You have voted 0 proposals")
+ expect(page).to have_content("You have voted 0 investments")
click_link "Go back"
@@ -464,7 +464,7 @@ feature 'Ballots' do
within("#budget_investment_#{investment.id}") do
find("div.ballot").hover
- expect(page).to have_content 'Only verified users can vote on proposals'
+ expect(page).to have_content 'Only verified users can vote on investments'
expect(page).to have_selector('.in-favor a', visible: false)
end
end