spec/client_spec.rb in redis_failover-0.9.6 vs spec/client_spec.rb in redis_failover-0.9.7
- old
+ new
@@ -36,9 +36,15 @@
it 'properly parses slaves' do
client.current_slaves.first.to_s.should == 'localhost:1111'
end
end
+ describe '#client' do
+ it 'should return itself as a delegate' do
+ client.client.should == client
+ end
+ end
+
describe '#dispatch' do
it 'routes write operations to master' do
called = false
client.current_master.define_singleton_method(:del) do |*args|
called = true