diff options
author | abcang <abcang1015@gmail.com> | 2018-02-02 18:10:18 +0900 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2018-02-02 10:10:18 +0100 |
commit | 1afc70c990d4d23e5fac57de9cb579c396a82b5c (patch) | |
tree | 2c4c94c7762b0d30d755cfa971defce129932a92 /spec/models | |
parent | f4bd51da1e4236fce5d46d76136bb2ef4a0e51ed (diff) |
Fix mistake in cache deletion (#6408)
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/setting_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/setting_spec.rb b/spec/models/setting_spec.rb index e99dfc0d7..bbba5f98d 100644 --- a/spec/models/setting_spec.rb +++ b/spec/models/setting_spec.rb @@ -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 } |