Add translation to published milestone. Fix test
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user