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
|
it 'should act as a proxy to the new methods' do
|
||||||
begin
|
begin
|
||||||
original_settings = SiteSettings::DeprecatedSettings::SETTINGS
|
original_settings = SiteSettings::DeprecatedSettings::SETTINGS.dup
|
||||||
SiteSettings::DeprecatedSettings::SETTINGS.clear
|
SiteSettings::DeprecatedSettings::SETTINGS.clear
|
||||||
|
|
||||||
SiteSettings::DeprecatedSettings::SETTINGS.push([
|
SiteSettings::DeprecatedSettings::SETTINGS.push([
|
||||||
|
|
Loading…
Reference in New Issue