adds specs for many tags in a budget investment

This commit is contained in:
rgarcia
2017-01-19 10:03:38 +01:00
parent fce5eb9803
commit c918c9e081

View File

@@ -36,6 +36,18 @@ feature 'Tags' do
end end
end end
scenario 'Index shows up to 5 tags per proposal' do
create_featured_proposals
tag_list = ["Hacienda", "Economía", "Medio Ambiente", "Corrupción", "Fiestas populares", "Prensa"]
create :budget_investment, heading: heading, tag_list: tag_list
visit budget_investments_path(budget, heading_id: heading.id)
within('.budget-investment .tags') do
expect(page).to have_content '1+'
end
end
scenario 'Show' do scenario 'Show' do
investment = create(:budget_investment, heading: heading, tag_list: 'Hacienda, Economía') investment = create(:budget_investment, heading: heading, tag_list: 'Hacienda, Economía')