adds expectations for tag_list and organization_name fields
This commit is contained in:
@@ -221,6 +221,8 @@ feature 'Budget Investments' do
|
||||
fill_in 'budget_investment_description', with: 'I want to live in a high tower over the clouds'
|
||||
fill_in 'budget_investment_external_url', with: 'http://http://skyscraperpage.com/'
|
||||
fill_in 'budget_investment_location', with: 'City center'
|
||||
fill_in 'budget_investment_organization_name', with: 'T.I.A.'
|
||||
fill_in 'budget_investment_tag_list', with: 'Towers'
|
||||
check 'budget_investment_terms_of_service'
|
||||
|
||||
click_button 'Create Investment'
|
||||
@@ -230,6 +232,8 @@ feature 'Budget Investments' do
|
||||
expect(page).to have_content 'I want to live in a high tower over the clouds'
|
||||
expect(page).to have_content 'http://http://skyscraperpage.com/'
|
||||
expect(page).to have_content 'City center'
|
||||
expect(page).to have_content 'T.I.A.'
|
||||
expect(page).to have_content 'Towers'
|
||||
|
||||
visit user_url(author, filter: :budget_investments)
|
||||
expect(page).to have_content '1 Investment'
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user