spec/punchblock/client_spec.rb in punchblock-2.3.1 vs spec/punchblock/client_spec.rb in punchblock-2.4.0

- old
+ new

@@ -38,9 +38,16 @@ connection.should_receive(:send_message).with(*args).once subject.send_message *args end end + describe '#new_call_uri' do + it 'should return the connection-specific fresh call ID' do + stub_uuids 'foobar' + subject.new_call_uri.should == 'xmpp:foobar@call.rayo.net' + end + end + it 'should handle connection events' do subject.should_receive(:handle_event).with(mock_event).once connection.event_handler.call mock_event end