Fixes show investment's price & cost explanation spec

Backport from AyuntamientoMadrid/consul
This commit is contained in:
decabeza
2018-07-21 14:28:59 +02:00
committed by Marko Lovic
parent 69ca2be994
commit b4f7f8e0f3

View File

@@ -883,6 +883,10 @@ feature 'Budget Investments' do
expect(page).to have_content(investment.formatted_price)
expect(page).to have_content(investment.price_explanation)
if budget.finished?
investment.update(winner: true)
end
visit budget_investments_path(budget)
expect(page).to have_content(investment.formatted_price)