mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Correct user profile URLs in /about crawler view
This commit is contained in:
@@ -35,6 +35,13 @@ describe AboutController do
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include("<title>About - Discourse</title>")
|
||||
end
|
||||
|
||||
it "should include correct user URLs" do
|
||||
Fabricate(:admin, username: "anAdminUser")
|
||||
get '/about', headers: { 'HTTP_USER_AGENT' => 'Googlebot' }
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include("/u/anadminuser")
|
||||
end
|
||||
end
|
||||
|
||||
it "serializes stats when 'Guardian#can_see_about_stats?' is true" do
|
||||
|
||||
Reference in New Issue
Block a user