Browse Source

Fix mistake in cache deletion (#6408)

pull/4/head
abcang 6 years ago
committed by Eugen Rochko
parent
commit
1afc70c990
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      spec/models/setting_spec.rb

+ 1
- 1
spec/models/setting_spec.rb View File

@ -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 }

Loading…
Cancel
Save