Fix spectations for localized milestone date

This commit is contained in:
Bertocq
2017-07-09 14:35:45 +02:00
parent b1caefdf9a
commit 824a672292

View File

@@ -392,7 +392,8 @@ feature 'Budget Investments' do
scenario "Show milestones", :js do
user = create(:user)
investment = create(:budget_investment)
milestone = create(:budget_investment_milestone, investment: investment, title: "New text to show")
milestone = create(:budget_investment_milestone, investment: investment, title: "New text to show",
created_at: DateTime.new(2015, 9, 19).utc)
login_as(user)
visit budget_investment_path(budget_id: investment.budget.id, id: investment.id)
@@ -402,7 +403,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")}")
expect(page).to have_content("Published 2015-09-19")
end
end