Use strings instead of method calls in expectations

This commit is contained in:
rgarcia
2018-03-05 01:05:36 +01:00
parent 71bb5b3dcf
commit c4b6ad9ee6

View File

@@ -921,7 +921,7 @@ feature 'Budget Investments' do
visit budget_investment_path(budget_id: budget.id, id: investment.id)
expect(page).to have_content("Unfeasibility explanation")
expect(page).to have_content(investment.unfeasibility_explanation)
expect(page).to have_content("Local government is not competent in this matter")
end
scenario "Show (unfeasible budget investment with valuation not finished)" do
@@ -939,7 +939,7 @@ feature 'Budget Investments' do
visit budget_investment_path(budget_id: budget.id, id: investment.id)
expect(page).not_to have_content("Unfeasibility explanation")
expect(page).not_to have_content(investment.unfeasibility_explanation)
expect(page).not_to have_content("Local government is not competent in this matter")
end
scenario "Show milestones", :js do