Sha256: e2a2b95d1ef8fee5c1dfced85fc11417989cc534cdc51554ecb625f4cd47aeec
Contents?: true
Size: 526 Bytes
Versions: 16
Compression:
Stored size: 526 Bytes
Contents
describe Wisper::ObjectRegistration do describe 'broadcaster' do it 'defaults to SendBroadcaster' do subject = Wisper::ObjectRegistration.new(double('listener'), {}) expect(subject.broadcaster).to be_instance_of(Wisper::Broadcasters::SendBroadcaster) end it 'default is lazily evaluated' do expect(Wisper::Broadcasters::SendBroadcaster).to_not receive :new Wisper::ObjectRegistration.new(double('listener'), broadcaster: double('DifferentBroadcaster').as_null_object) end end end
Version data entries
16 entries across 16 versions & 4 rubygems