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

Version Path
lotrd-0.1.9 vendor/cache/ruby/2.6.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
lotrd-0.1.8 vendor/cache/ruby/2.6.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
lotrd-0.1.6 vendor/cache/ruby/2.6.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
lotrd-0.1.5 vendor/cache/ruby/2.6.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
pokedex-terminal-0.2.8 vendor/bundle/ruby/2.7.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
pokedex-terminal-0.2.7 vendor/bundle/ruby/2.7.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
pokedex-terminal-0.2.6 vendor/bundle/ruby/2.7.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
pokedex-terminal-0.2.5 vendor/bundle/ruby/2.7.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
pokedex-terminal-0.2.4 vendor/bundle/ruby/2.7.0/gems/wisper-2.0.1/spec/lib/wisper/registrations/object_spec.rb
wisper-2.0.1 spec/lib/wisper/registrations/object_spec.rb
siftery-wisper-2.0.1 spec/lib/wisper/registrations/object_spec.rb
wisper-2.0.0 spec/lib/wisper/registrations/object_spec.rb
wisper-1.6.1 spec/lib/wisper/registrations/object_spec.rb
wisper-2.0.0.rc1 spec/lib/wisper/registrations/object_spec.rb
wisper-1.6.0 spec/lib/wisper/registrations/object_spec.rb
wisper-1.5.0 spec/lib/wisper/registrations/object_spec.rb