Missing validate new form milestone spec on Admin.

This commit is contained in:
taitus
2017-06-23 13:18:54 +02:00
parent 2fe663ef8f
commit eeb9c95d1a

View File

@@ -35,6 +35,21 @@ feature 'Admin budget investment milestones' do
expect(page).to have_content 'New title milestone'
expect(page).to have_content 'New description milestone'
end
scenario "Show validation errors on milestone form" do
visit admin_budget_budget_investment_path(@investment.budget, @investment)
click_link 'Create new milestone'
fill_in 'budget_investment_milestone_description', with: 'New description milestone'
click_button 'Create milestone'
within "#new_budget_investment_milestone" do
expect(page).to have_content "can't be blank"
expect(page).to have_content 'New description milestone'
end
end
end
context "Edit" do