Sha256: a9fe3a8299f2d02a96787e8351614f691c7c48e20a47c09612ea484f7090d800
Contents?: true
Size: 775 Bytes
Versions: 13
Compression:
Stored size: 775 Bytes
Contents
module Wisper module Broadcasters describe SendBroadcaster do let(:listener) { double('listener') } let(:event) { 'thing_created' } describe '#broadcast' do context 'without arguments' do let(:args) { [] } it 'sends event to listener without any arguments' do expect(listener).to receive(event).with(no_args()) subject.broadcast(listener, anything, event, args) end end context 'with arguments' do let(:args) { [1,2,3] } it 'sends event to listener with arguments' do expect(listener).to receive(event).with(*args) subject.broadcast(listener, anything, event, args) end end end end end end
Version data entries
13 entries across 13 versions & 4 rubygems