Remove spending proposals from sitemap and its test, deprecated model

This commit is contained in:
Bertocq
2018-01-07 15:33:09 +01:00
parent ea34aa4c4b
commit 3509bfe3e4
2 changed files with 2 additions and 8 deletions

View File

@@ -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

View File

@@ -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