Fixes errors in specs related to changes in budget phases
This commit is contained in:
@@ -83,10 +83,10 @@ feature 'Admin budgets' do
|
||||
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'
|
||||
fill_in 'budget_description_accepting', with: 'Budgeting for summer 2017 maintenance and improvements of the road M-30'
|
||||
select 'Accepting proposals', from: 'budget[phase]'
|
||||
|
||||
click_button 'Create budget'
|
||||
click_button 'Create Participatory budget'
|
||||
|
||||
expect(page).to have_content 'New participatory budget created successfully!'
|
||||
expect(page).to have_content 'M30 - Summer campaign'
|
||||
@@ -94,7 +94,7 @@ feature 'Admin budgets' do
|
||||
|
||||
scenario 'Name is mandatory' do
|
||||
visit new_admin_budget_path
|
||||
click_button 'Create budget'
|
||||
click_button 'Create Participatory budget'
|
||||
|
||||
expect(page).to_not have_content 'New participatory budget created successfully!'
|
||||
expect(page).to have_css("label.error", text: "Name")
|
||||
|
||||
@@ -5,7 +5,7 @@ feature 'Valuation budget investments' do
|
||||
background do
|
||||
@valuator = create(:valuator, user: create(:user, username: 'Rachel', email: 'rachel@valuators.org'))
|
||||
login_as(@valuator.user)
|
||||
@budget = create(:budget, valuating: true)
|
||||
@budget = create(:budget, :valuating)
|
||||
end
|
||||
|
||||
scenario 'Disabled with a feature flag' do
|
||||
@@ -392,4 +392,4 @@ feature 'Valuation budget investments' do
|
||||
expect(page).to have_content('Only integer numbers', count: 2)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user