spec/lita/adapters/campfire/connector_spec.rb in lita-campfire-0.2.1 vs spec/lita/adapters/campfire/connector_spec.rb in lita-campfire-0.3.0

- old
+ new

@@ -104,9 +104,18 @@ it 'pastes each message into room' do expect(room).to receive(:paste).with(message) subject.send_messages room, [ message ] end end + + context 'with a sound' do + let(:message) { "/play yeah" } + + it 'plays a sound into room' do + expect(room).to receive(:play).with(message.sub("/play ","")) + subject.send_messages room, [ message ] + end + end end describe '#set_topic' do let(:topic) { 'Let it be wadus' } \ No newline at end of file