mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 00:18:15 +08:00
FIX: SiteSettings::LocalProcessProvider didn't work on multisite
It always used "test" as current site.
This commit is contained in:

committed by
Gerhard Schlager

parent
0967ce478d
commit
11647b79f7
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user