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:
David Taylor 2021-02-22 21:55:15 +00:00 committed by GitHub
parent 9063520d89
commit 063690d28d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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([