Remove spending proposals from sitemap and its test, deprecated model
This commit is contained in:
@@ -28,11 +28,6 @@ SitemapGenerator::Sitemap.create do
|
||||
add proposal_path(proposal), lastmod: proposal.updated_at
|
||||
end
|
||||
|
||||
add spending_proposals_path, priority: 0.7, changefreq: "daily"
|
||||
SpendingProposal.find_each do |spending_proposal|
|
||||
add spending_proposal_path(spending_proposal), lastmod: spending_proposal.updated_at
|
||||
end
|
||||
|
||||
add budgets_path, priority: 0.7, changefreq: "daily"
|
||||
Budget.find_each do |budget|
|
||||
add budget_path(budget), lastmod: budget.updated_at
|
||||
|
||||
@@ -39,10 +39,9 @@ feature 'rake sitemap:create' do
|
||||
expect(sitemap).to include(budgets_path)
|
||||
expect(sitemap).to include(debates_path)
|
||||
expect(sitemap).to include(proposals_path)
|
||||
expect(sitemap).to include(spending_proposals_path)
|
||||
expect(sitemap).to include(legislation_processes_path)
|
||||
|
||||
expect(sitemap).to have_content('0.7', count: 6)
|
||||
expect(sitemap).to have_content('daily', count: 6)
|
||||
expect(sitemap).to have_content('0.7', count: 5)
|
||||
expect(sitemap).to have_content('daily', count: 5)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user