mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 03:06:53 +08:00
FEATURE: backend support for user-selectable components
* FEATURE: backend support for user-selectable components * fix problems with previewing default theme * rename preview_key => preview_theme_id * omit default theme from child themes dropdown and try a different fix * cache & freeze stylesheets arrays
This commit is contained in:
@ -4,7 +4,7 @@ require 'theme_settings_manager'
|
||||
describe ThemeSettingsManager do
|
||||
|
||||
let(:theme_settings) do
|
||||
theme = Theme.create!(name: "awesome theme", user_id: -1)
|
||||
theme = Fabricate(:theme)
|
||||
yaml = File.read("#{Rails.root}/spec/fixtures/theme_settings/valid_settings.yaml")
|
||||
theme.set_field(target: :settings, name: "yaml", value: yaml)
|
||||
theme.save!
|
||||
|
Reference in New Issue
Block a user