Skip to content
Snippets Groups Projects
Commit 1afc70c9 authored by abcang's avatar abcang Committed by Eugen Rochko
Browse files

Fix mistake in cache deletion (#6408)

parent f4bd51da
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ RSpec.describe Setting, type: :model do
allow(RailsSettings::Settings).to receive(:object).with(key).and_return(object)
allow(described_class).to receive(:default_settings).and_return(default_settings)
allow_any_instance_of(Settings::ScopedSettings).to receive(:thing_scoped).and_return(records)
Rails.cache.clear(cache_key)
Rails.cache.delete(cache_key)
end
let(:object) { nil }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment