Fixes errors in specs related to changes in budget phases

This commit is contained in:
kikito
2017-01-02 10:37:37 +01:00
parent f14f7b9a70
commit 98e9e8de0f
2 changed files with 5 additions and 5 deletions

View File

@@ -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")

View File

@@ -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