diff options
Diffstat (limited to 'spec/lib/gitlab/redis/multi_store_spec.rb')
-rw-r--r-- | spec/lib/gitlab/redis/multi_store_spec.rb | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/spec/lib/gitlab/redis/multi_store_spec.rb b/spec/lib/gitlab/redis/multi_store_spec.rb index 1745a745ec3..66860e8a443 100644 --- a/spec/lib/gitlab/redis/multi_store_spec.rb +++ b/spec/lib/gitlab/redis/multi_store_spec.rb @@ -56,7 +56,6 @@ RSpec.describe Gitlab::Redis::MultiStore, feature_category: :redis do context 'when primary_store is not a ::Redis instance' do before do allow(primary_store).to receive(:is_a?).with(::Redis).and_return(false) - allow(primary_store).to receive(:is_a?).with(::Redis::Namespace).and_return(false) end it 'fails with exception' do @@ -65,21 +64,9 @@ RSpec.describe Gitlab::Redis::MultiStore, feature_category: :redis do end end - context 'when primary_store is a ::Redis::Namespace instance' do - before do - allow(primary_store).to receive(:is_a?).with(::Redis).and_return(false) - allow(primary_store).to receive(:is_a?).with(::Redis::Namespace).and_return(true) - end - - it 'fails with exception' do - expect { described_class.new(primary_store, secondary_store, instance_name) }.not_to raise_error - end - end - context 'when secondary_store is not a ::Redis instance' do before do allow(secondary_store).to receive(:is_a?).with(::Redis).and_return(false) - allow(secondary_store).to receive(:is_a?).with(::Redis::Namespace).and_return(false) end it 'fails with exception' do @@ -88,17 +75,6 @@ RSpec.describe Gitlab::Redis::MultiStore, feature_category: :redis do end end - context 'when secondary_store is a ::Redis::Namespace instance' do - before do - allow(secondary_store).to receive(:is_a?).with(::Redis).and_return(false) - allow(secondary_store).to receive(:is_a?).with(::Redis::Namespace).and_return(true) - end - - it 'fails with exception' do - expect { described_class.new(primary_store, secondary_store, instance_name) }.not_to raise_error - end - end - # rubocop:disable RSpec/MultipleMemoizedHelpers context 'with READ redis commands' do subject do |