mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 09:08:10 +08:00
Code review comments.
This commit is contained in:
@ -10,10 +10,18 @@ RSpec.describe SafeModeController do
|
||||
theme.save!
|
||||
theme.set_default!
|
||||
|
||||
Fabricate(:admin) # Avoid wizard page
|
||||
|
||||
get '/'
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include("data-theme-id=\"#{theme.id}\"")
|
||||
|
||||
get '/safe-mode'
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).not_to include("My Custom Header")
|
||||
expect(response.body).not_to include("data-theme-id=\"#{theme.id}\"")
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user