mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 07:49:48 +08:00
DEV: Apply syntax_tree formatting to spec/*
This commit is contained in:
@ -11,12 +11,16 @@ RSpec.describe ThemeModifierSet do
|
||||
t2 = Fabricate(:theme)
|
||||
t2.theme_modifier_set.update!(serialize_topic_excerpts: false)
|
||||
|
||||
expect(ThemeModifierSet.resolve_modifier_for_themes([t1.id, t2.id], :serialize_topic_excerpts)).to eq(true)
|
||||
expect(
|
||||
ThemeModifierSet.resolve_modifier_for_themes([t1.id, t2.id], :serialize_topic_excerpts),
|
||||
).to eq(true)
|
||||
|
||||
t1 = Fabricate(:theme)
|
||||
t1.theme_modifier_set.update!(serialize_topic_excerpts: nil)
|
||||
|
||||
expect(ThemeModifierSet.resolve_modifier_for_themes([t1.id, t2.id], :serialize_topic_excerpts)).to eq(false)
|
||||
expect(
|
||||
ThemeModifierSet.resolve_modifier_for_themes([t1.id, t2.id], :serialize_topic_excerpts),
|
||||
).to eq(false)
|
||||
end
|
||||
|
||||
it "builds modifiers list from database" do
|
||||
|
Reference in New Issue
Block a user