From eb5291d8a6d062c012f23d002deaadbe7ab6b5b9 Mon Sep 17 00:00:00 2001 From: kikito Date: Mon, 19 Dec 2016 19:10:49 +0100 Subject: [PATCH] Fixes budgets/votes_spec --- app/views/budgets/investments/_votes.html.erb | 4 ++-- config/locales/en.yml | 6 ++++++ spec/features/budgets/votes_spec.rb | 10 +++++----- 3 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/views/budgets/investments/_votes.html.erb b/app/views/budgets/investments/_votes.html.erb index 81acd9749..7a8a7826b 100644 --- a/app/views/budgets/investments/_votes.html.erb +++ b/app/views/budgets/investments/_votes.html.erb @@ -2,7 +2,7 @@ <% voting_allowed = true unless reason.presence == :not_voting_allowed %> <% user_voted_for = voted_for?(investment_votes, investment) %> -
+
<%= t("budget.investments.investment.supports", count: investment.total_votes) %> @@ -27,7 +27,7 @@
<% if reason.present? && !user_voted_for %> -