FIX: SiteSettings::LocalProcessProvider didn't work on multisite

It always used "test" as current site.
This commit is contained in:
Gerhard Schlager
2020-08-18 15:38:30 +02:00
committed by Gerhard Schlager
parent 0967ce478d
commit 11647b79f7
4 changed files with 40 additions and 9 deletions

View File

@ -163,11 +163,13 @@ describe SiteSettingExtension do
end
describe "multisite" do
it "has no db cross talk" do
it "has no db cross talk", type: :multisite do
settings.setting(:hello, 1)
settings.hello = 100
settings.provider.current_site = "boom"
expect(settings.hello).to eq(1)
test_multisite_connection("second") do
expect(settings.hello).to eq(1)
end
end
end