Sha256: 6bb6d196041f66abee7ce07eefc99ce515710ac3f442257bc0b58c173ebe5ba3
Contents?: true
Size: 1.13 KB
Versions: 5
Compression:
Stored size: 1.13 KB
Contents
require 'spec_helper' shared_examples 'redis' do it_behaves_like 'compatibility' it_behaves_like 'hashes' it_behaves_like 'connection' it_behaves_like 'keys' it_behaves_like 'lists' it_behaves_like 'server' it_behaves_like 'sets' it_behaves_like 'strings' it_behaves_like 'transactions' it_behaves_like 'sorted sets' it_behaves_like 'upcase method names' end describe 'Rediska' do subject { Redis.new } before do Rediska.configure do |config| config.namespace = 'rediska_test' end end context 'fake redis' do context 'memory' do before do subject.flushall end it_behaves_like 'redis' end context 'PStore' do before do Rediska.configure do |config| config.database = :filesystem end subject.flushall end it_behaves_like 'redis' end end pending 'real redis (interoperability)' do before do subject.flushall end before(:all) do Redis::Connection.drivers.pop end after(:all) do Redis::Connection.drivers << Rediska::Connection end it_behaves_like 'redis' end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
rediska-0.0.11 | spec/redis_spec.rb |
rediska-0.0.10 | spec/redis_spec.rb |
rediska-0.0.9 | spec/redis_spec.rb |
rediska-0.0.8 | spec/redis_spec.rb |
rediska-0.0.7 | spec/redis_spec.rb |