From 6de0a45aa2f0b66d3cf2f793f0e613f167096878 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juanjo=20Baza=CC=81n?= Date: Fri, 19 May 2017 12:38:28 +0200 Subject: [PATCH] adds expectations for tag_list and organization_name fields --- spec/features/budgets/investments_spec.rb | 4 ++++ spec/features/management/budget_investments_spec.rb | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/spec/features/budgets/investments_spec.rb b/spec/features/budgets/investments_spec.rb index 1c6b1c7c8..a0f65a012 100644 --- a/spec/features/budgets/investments_spec.rb +++ b/spec/features/budgets/investments_spec.rb @@ -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' diff --git a/spec/features/management/budget_investments_spec.rb b/spec/features/management/budget_investments_spec.rb index a066a9089..edf0980b1 100644 --- a/spec/features/management/budget_investments_spec.rb +++ b/spec/features/management/budget_investments_spec.rb @@ -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