adds specs for many tags in a budget investment
This commit is contained in:
@@ -36,6 +36,18 @@ feature 'Tags' do
|
||||
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
|
||||
investment = create(:budget_investment, heading: heading, tag_list: 'Hacienda, Economía')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user