diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-11 13:08:37 -0500 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2017-08-11 13:08:37 -0500 |
commit | 9325a51cb001f42348651eaeb3f2eb272d6bfd3d (patch) | |
tree | c0c0884f792b411e0ad4203468fa958ecf088f9b /spec | |
parent | e93779ae189c11231285391ad0650a1cd48b4e0f (diff) | |
download | gitlab-ce-9325a51cb001f42348651eaeb3f2eb272d6bfd3d.tar.gz |
Revert "Merge branch 'broadcast-messages-cache' into 'master'"
This reverts commit c19ea197c7195771ddd68fa298f72c28612cadd8, reversing
changes made to 0887a2bd10c3d774299b5b779d0335ddcb5064de.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/models/broadcast_message_spec.rb | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/spec/models/broadcast_message_spec.rb b/spec/models/broadcast_message_spec.rb index 3369aef1d3e..a8ca1d110e4 100644 --- a/spec/models/broadcast_message_spec.rb +++ b/spec/models/broadcast_message_spec.rb @@ -20,7 +20,7 @@ describe BroadcastMessage do it { is_expected.not_to allow_value('000').for(:font) } end - describe '.current', :use_clean_rails_memory_store_caching do + describe '.current' do it 'returns message if time match' do message = create(:broadcast_message) @@ -45,14 +45,6 @@ describe BroadcastMessage do expect(described_class.current).to be_empty end - - it 'caches the output of the query' do - create(:broadcast_message) - - expect(described_class).to receive(:where).and_call_original.once - - 2.times { described_class.current } - end end describe '#active?' do @@ -110,14 +102,4 @@ describe BroadcastMessage do end end end - - describe '#flush_redis_cache' do - it 'flushes the Redis cache' do - message = create(:broadcast_message) - - expect(Rails.cache).to receive(:delete).with(described_class::CACHE_KEY) - - message.flush_redis_cache - end - end end |