seo: increase sitemap coverage.
Rework sitemaps to provide more coverage of the site. We want every important page on the site - including every post, tag, and wiki page - to be indexed by Google. We do this by generating sitemaps and sitemap indexes that contain links to every important page on the site.
This commit is contained in:
@@ -12,6 +12,12 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
assert_response :success
|
||||
end
|
||||
|
||||
should "render for a sitemap" do
|
||||
get users_path(format: :sitemap)
|
||||
assert_response :success
|
||||
assert_equal(User.count, response.parsed_body.css("urlset url loc").size)
|
||||
end
|
||||
|
||||
should "list all users for /users?name=<name>" do
|
||||
get users_path, params: { name: @user.name }
|
||||
assert_redirected_to(@user)
|
||||
|
||||
Reference in New Issue
Block a user