FIX: bypass all site setting work for shadowed method

This commit is contained in:
Sam
2017-10-27 11:12:44 +11:00
parent 530624d438
commit 70aed105a6
2 changed files with 36 additions and 1 deletions

View File

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