mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +08:00
Revert "FEATURE: Site settings defaults per locale"
This reverts commit 468a8fcd20
.
This commit is contained in:
parent
4b53fe3cc7
commit
439fe8ba24
28 changed files with 364 additions and 1373 deletions
|
@ -27,7 +27,6 @@ describe Admin::SiteSettingsController do
|
|||
|
||||
before do
|
||||
SiteSetting.setting(:test_setting, "default")
|
||||
SiteSetting.refresh!
|
||||
end
|
||||
|
||||
it 'sets the value when the param is present' do
|
||||
|
@ -50,7 +49,6 @@ describe Admin::SiteSettingsController do
|
|||
|
||||
it 'does not allow changing of hidden settings' do
|
||||
SiteSetting.setting(:hidden_setting, "hidden", hidden: true)
|
||||
SiteSetting.refresh!
|
||||
result = xhr :put, :update, id: 'hidden_setting', hidden_setting: 'not allowed'
|
||||
expect(SiteSetting.hidden_setting).to eq("hidden")
|
||||
expect(result.status).to eq(422)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue