Sha256: 5f802f7064c0065c21cdbadeadc5edfa20ad5e91897cdf6ca9c3fd5887e80398
Contents?: true
Size: 703 Bytes
Versions: 1
Compression:
Stored size: 703 Bytes
Contents
require 'faye' require 'faye/reconnect' require 'spec_helper' describe Faye::Reconnect::ClientExtension do it 'requires a name option' do expect { Faye::Reconnect::ClientExtension.new }.to raise_error(ArgumentError, "missing keyword: name") expect { Faye::Reconnect::ClientExtension.new(name: 'foobar') }.to_not raise_error end describe '#close_redis_connection' do it 'calls #close_connection on the redis client' do faye_reconnect = Faye::Reconnect::ClientExtension.new(name: 'foobar') expect_any_instance_of(EventMachine::Hiredis::Client).to receive(:close_connection).and_return(true) faye_reconnect.close_redis_connection end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
faye-reconnect-1.0.0 | spec/client_extension_spec.rb |