mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 02:24:47 +08:00
FIX: bypass all site setting work for shadowed method
This commit is contained in:
@ -472,6 +472,7 @@ describe SiteSettingExtension do
|
||||
it "should return default cause nothing is set" do
|
||||
expect(settings.nada).to eq('nothing')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
context "with a false override" do
|
||||
@ -484,6 +485,14 @@ describe SiteSettingExtension do
|
||||
it "should return default cause nothing is set" do
|
||||
expect(settings.bool).to eq(false)
|
||||
end
|
||||
|
||||
it "should not trigger any message bus work if you try to set it" do
|
||||
m = MessageBus.track_publish('/site_settings') do
|
||||
settings.bool = true
|
||||
expect(settings.bool).to eq(false)
|
||||
end
|
||||
expect(m.length).to eq(0)
|
||||
end
|
||||
end
|
||||
|
||||
context "with global setting" do
|
||||
|
Reference in New Issue
Block a user