fixes specs

This commit is contained in:
Alberto Garcia Cabeza
2016-12-29 19:16:20 +01:00
parent 84e44dc529
commit 73e3ea3560
4 changed files with 7 additions and 5 deletions

View File

@@ -80,7 +80,7 @@ feature 'Admin budgets' do
scenario 'Create budget' do
visit admin_budgets_path
click_link 'Create new'
click_link 'Create new budget'
fill_in 'budget_name', with: 'M30 - Summer campaign'
fill_in 'budget_description', with: 'Budgeting for summer 2017 maintenance and improvements of the road M-30'
@@ -97,7 +97,7 @@ feature 'Admin budgets' do
click_button 'Create budget'
expect(page).to_not have_content 'New participatory budget created successfully!'
expect(page).to have_css("label.error", text: "Budget's name")
expect(page).to have_css("label.error", text: "Name")
end
end