spec/punchblock/client_spec.rb in punchblock-2.2.2 vs spec/punchblock/client_spec.rb in punchblock-2.3.0

- old
+ new

@@ -30,9 +30,17 @@ connection.should_receive(:stop).once subject.stop end end + describe '#send_message' do + it 'should send a message' do + args = [ "someone", "example.org", "Hello World!" ] + connection.should_receive(:send_message).with(*args).once + subject.send_message *args + end + end + it 'should handle connection events' do subject.should_receive(:handle_event).with(mock_event).once connection.event_handler.call mock_event end