Adds price explanation link on budget investments show

This commit is contained in:
decabeza
2018-12-18 11:46:17 +01:00
parent d583c93ebf
commit 7316c16edd
4 changed files with 14 additions and 1 deletions

View File

@@ -902,6 +902,7 @@ feature 'Budget Investments' do
expect(page).to have_content(investment.formatted_price)
expect(page).to have_content(investment.price_explanation)
expect(page).to have_link("See price explanation")
if budget.finished?
investment.update(winner: true)
@@ -920,6 +921,7 @@ feature 'Budget Investments' do
expect(page).not_to have_content(investment.formatted_price)
expect(page).not_to have_content(investment.price_explanation)
expect(page).not_to have_link("See price explanation")
visit budget_investments_path(budget)
@@ -941,6 +943,7 @@ feature 'Budget Investments' do
expect(page).not_to have_content(investment.formatted_price)
expect(page).not_to have_content(investment.price_explanation)
expect(page).not_to have_link("See price explanation")
visit budget_investments_path(budget)