Migrate to new theming infrastructure (#37612)

This commit is contained in:
Claire authored and GitHub committed 2026-02-10 10:59:47 +00:00
1 parent fb89198460
commit 75ba314e6b
17 files changed
+93 -101

No files matched your search

@@ -97,24 +97,6 @@ RSpec.describe ApplicationController do
expect(controller.view_context.current_theme).to eq 'contrast'
end
it 'returns instances\'s default theme when user didn\'t set theme' do
current_user = Fabricate(:user)
current_user.settings.update(theme: 'contrast', noindex: false)
current_user.save
sign_in current_user
expect(controller.view_context.current_theme).to eq 'contrast'
end
it 'returns user\'s theme when it is set' do
current_user = Fabricate(:user)
current_user.settings.update(theme: 'mastodon-light')
current_user.save
sign_in current_user
expect(controller.view_context.current_theme).to eq 'mastodon-light'
end
end
context 'with ActionController::RoutingError' do