Add translation to published milestone. Fix test

This commit is contained in:
taitus
2017-06-26 13:20:09 +02:00
parent 0222d61e1e
commit fee9e99d37
4 changed files with 4 additions and 1 deletions

View File

@@ -12,7 +12,7 @@
<li>
<div>
<h3><%= milestone.title %></h3>
<strong>Publicado el <%= milestone.created_at.strftime("%d/%m/%Y") %></strong>
<strong><%= t("budgets.investments.show.milestone_publish_date", publish_date: milestone.created_at.strftime("%d/%m/%Y")) %></strong>
<p><%= milestone.description %></p>
</div>
</li>

View File

@@ -96,6 +96,7 @@ en:
comments_tab: Comments
milestones_tab: Milestones
no_milestones: Don't have defined milestones
milestone_publish_date: "Published %{publish_date}"
wrong_price_format: Only integer numbers
investment:
add: Vote

View File

@@ -96,6 +96,7 @@ es:
comments_tab: Comentarios
milestones_tab: Seguimiento
no_milestones: No hay hitos definidos
milestone_publish_date: "Publicado el %{publish_date}"
wrong_price_format: Solo puede incluir caracteres numéricos
investment:
add: Votar

View File

@@ -402,6 +402,7 @@ feature 'Budget Investments' do
within("#tab-milestones") do
expect(page).to have_content(milestone.title)
expect(page).to have_content(milestone.description)
expect(page).to have_content("Published #{milestone.created_at.strftime("%d/%m/%Y")}")
end
end