Fix crash in valuation when there are no budgets

This commit is contained in:
Javi Martín
2018-12-21 17:23:53 +01:00
parent b0f1b6245e
commit fd681c17df
4 changed files with 41 additions and 28 deletions

View File

@@ -35,6 +35,11 @@ feature 'Valuation budgets' do
expect(page).to have_content(budget3.name)
end
scenario "With no budgets" do
visit valuation_budgets_path
expect(page).to have_content "There are no budgets"
end
end
end