1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-24 23:26:31 +09:00

Fix mistake in cache deletion (#6408)

This commit is contained in:
abcang 2018-02-02 18:10:18 +09:00 committed by Eugen Rochko
parent f4bd51da1e
commit 1afc70c990

View File

@ -52,7 +52,7 @@ RSpec.describe Setting, type: :model do
allow(RailsSettings::Settings).to receive(:object).with(key).and_return(object) allow(RailsSettings::Settings).to receive(:object).with(key).and_return(object)
allow(described_class).to receive(:default_settings).and_return(default_settings) allow(described_class).to receive(:default_settings).and_return(default_settings)
allow_any_instance_of(Settings::ScopedSettings).to receive(:thing_scoped).and_return(records) allow_any_instance_of(Settings::ScopedSettings).to receive(:thing_scoped).and_return(records)
Rails.cache.clear(cache_key) Rails.cache.delete(cache_key)
end end
let(:object) { nil } let(:object) { nil }