diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb
index 10da73712..9c13e8ef8 100644
--- a/app/helpers/users_helper.rb
+++ b/app/helpers/users_helper.rb
@@ -30,6 +30,8 @@ module UsersHelper
t("users.show.deleted_proposal")
when "Debate"
t("users.show.deleted_debate")
+ when "Budget::Investment"
+ t("users.show.deleted_budget_investment")
else
t("users.show.deleted")
end
diff --git a/config/locales/en.yml b/config/locales/en.yml
index b19a7b0ac..ade7646ff 100755
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -551,6 +551,7 @@ en:
deleted: Deleted
deleted_debate: This debate has been deleted
deleted_proposal: This proposal has been deleted
+ deleted_budget_investment: This investment has been deleted
filters:
comments:
one: 1 Comment
diff --git a/config/locales/es.yml b/config/locales/es.yml
index 8840a5de3..6466c8a5d 100755
--- a/config/locales/es.yml
+++ b/config/locales/es.yml
@@ -551,6 +551,7 @@ es:
deleted: Eliminado
deleted_debate: Este debate ha sido eliminado
deleted_proposal: Este propuesta ha sido eliminada
+ deleted_budget_investment: Este propuesta de inversión ha sido eliminada
filters:
comments:
one: 1 Comentario
diff --git a/spec/helpers/users_helper_spec.rb b/spec/helpers/users_helper_spec.rb
index f1a72cd36..dcc92ba59 100644
--- a/spec/helpers/users_helper_spec.rb
+++ b/spec/helpers/users_helper_spec.rb
@@ -28,6 +28,15 @@ describe UsersHelper do
expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
end
+
+ it "should return the appropriate message for deleted budget investment" do
+ investment = create(:budget_investment)
+ comment = create(:comment, commentable: investment)
+
+ investment.hide
+
+ expect(comment_commentable_title(comment)).to eq "#{comment.commentable.title}"
+ end
end
describe '#comment_commentable_title' do