adds expectations for tag_list and organization_name fields

This commit is contained in:
Juanjo Bazán
2017-05-19 12:38:28 +02:00
parent e922a11aa3
commit 6de0a45aa2
2 changed files with 8 additions and 1 deletions

View File

@@ -34,7 +34,8 @@ feature 'Budget Investments' do
fill_in 'budget_investment_description', with: 'There is no parks here...'
fill_in 'budget_investment_external_url', with: 'http://moarparks.com'
fill_in 'budget_investment_location', with: 'City center'
check 'budget_investment_terms_of_service'
fill_in 'budget_investment_organization_name', with: 'T.I.A.'
fill_in 'budget_investment_tag_list', with: 'green'
click_button 'Create Investment'
@@ -45,6 +46,8 @@ feature 'Budget Investments' do
expect(page).to have_content 'There is no parks here...'
expect(page).to have_content 'http://moarparks.com'
expect(page).to have_content 'City center'
expect(page).to have_content 'T.I.A.'
expect(page).to have_content 'green'
expect(page).to have_content user.name
expect(page).to have_content I18n.l(@budget.created_at.to_date)
end