mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: title was repeating on about page
This commit is contained in:
@@ -101,6 +101,7 @@ describe StaticController do
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include(I18n.t('js.faq'))
|
||||
expect(response.body).to include("<title>FAQ - Discourse</title>")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -186,6 +187,14 @@ describe StaticController do
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
context "crawler view" do
|
||||
it "should include correct title" do
|
||||
get '/faq', headers: { 'HTTP_USER_AGENT' => 'Googlebot' }
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include("<title>FAQ - Discourse</title>")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe '#enter' do
|
||||
|
Reference in New Issue
Block a user