mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:53:42 +08:00
DEV: Correct DeprecatedSettings test cleanup (#12177)
If this test ran before the new SiteSettingsController spec from 8cd7c9b259
, it would fail the run. We need to `dup` the array before calling `.clear` on the original
This commit is contained in:
parent
9063520d89
commit
063690d28d
|
@ -163,7 +163,7 @@ describe SiteSetting do
|
|||
|
||||
it 'should act as a proxy to the new methods' do
|
||||
begin
|
||||
original_settings = SiteSettings::DeprecatedSettings::SETTINGS
|
||||
original_settings = SiteSettings::DeprecatedSettings::SETTINGS.dup
|
||||
SiteSettings::DeprecatedSettings::SETTINGS.clear
|
||||
|
||||
SiteSettings::DeprecatedSettings::SETTINGS.push([
|
||||
|
|
Loading…
Reference in New Issue
Block a user