Add translation to published milestone. Fix test
This commit is contained in:
@@ -12,7 +12,7 @@
|
|||||||
<li>
|
<li>
|
||||||
<div>
|
<div>
|
||||||
<h3><%= milestone.title %></h3>
|
<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>
|
<p><%= milestone.description %></p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ en:
|
|||||||
comments_tab: Comments
|
comments_tab: Comments
|
||||||
milestones_tab: Milestones
|
milestones_tab: Milestones
|
||||||
no_milestones: Don't have defined milestones
|
no_milestones: Don't have defined milestones
|
||||||
|
milestone_publish_date: "Published %{publish_date}"
|
||||||
wrong_price_format: Only integer numbers
|
wrong_price_format: Only integer numbers
|
||||||
investment:
|
investment:
|
||||||
add: Vote
|
add: Vote
|
||||||
|
|||||||
@@ -96,6 +96,7 @@ es:
|
|||||||
comments_tab: Comentarios
|
comments_tab: Comentarios
|
||||||
milestones_tab: Seguimiento
|
milestones_tab: Seguimiento
|
||||||
no_milestones: No hay hitos definidos
|
no_milestones: No hay hitos definidos
|
||||||
|
milestone_publish_date: "Publicado el %{publish_date}"
|
||||||
wrong_price_format: Solo puede incluir caracteres numéricos
|
wrong_price_format: Solo puede incluir caracteres numéricos
|
||||||
investment:
|
investment:
|
||||||
add: Votar
|
add: Votar
|
||||||
|
|||||||
@@ -402,6 +402,7 @@ feature 'Budget Investments' do
|
|||||||
within("#tab-milestones") do
|
within("#tab-milestones") do
|
||||||
expect(page).to have_content(milestone.title)
|
expect(page).to have_content(milestone.title)
|
||||||
expect(page).to have_content(milestone.description)
|
expect(page).to have_content(milestone.description)
|
||||||
|
expect(page).to have_content("Published #{milestone.created_at.strftime("%d/%m/%Y")}")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user