Sha256: 6c77f6107940f6f45f2f443bf37b1a8647cef03a2622bfc01557effd531740db
Contents?: true
Size: 652 Bytes
Versions: 5
Compression:
Stored size: 652 Bytes
Contents
require 'spec_helper' require 'date' require 'timecop' describe Pause::Redis::ShardedAdapter do let(:resolution) { 10 } let(:history) { 60 } let(:configuration) { Pause::Configuration.new } before do allow(Pause).to receive(:config).and_return(configuration) allow(Pause.config).to receive(:resolution).and_return(resolution) allow(Pause.config).to receive(:history).and_return(history) end let(:adapter) { Pause::Redis::ShardedAdapter.new(Pause.config) } describe '#all_keys' do it 'is not supported' do expect { adapter.all_keys('cake') }.to raise_error(Pause::Redis::OperationNotSupported) end end end
Version data entries
5 entries across 5 versions & 1 rubygems