Code review comments.

This commit is contained in:
Alan Guo Xiang Tan
2021-06-18 10:16:26 +08:00
parent 8e3691d537
commit 44aa46ca05
29 changed files with 159 additions and 64 deletions

View File

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