displays error on failed update

This commit is contained in:
rgarcia
2016-04-26 11:12:07 +02:00
parent 91199cda77
commit 23e325896f
2 changed files with 32 additions and 3 deletions

View File

@@ -423,6 +423,20 @@ feature 'Admin spending proposals' do
end
end
scenario "Errors on update" do
spending_proposal = create(:spending_proposal)
create(:geozone, name: "Barbate")
visit admin_spending_proposal_path(spending_proposal)
click_link 'Edit'
fill_in 'spending_proposal_title', with: ''
click_button 'Update'
expect(page).to have_content "can't be blank"
end
end
context 'Summary' do