spec/blather/stream/component_spec.rb in blather-1.0.0 vs spec/blather/stream/component_spec.rb in blather-1.1.0

- old
+ new

@@ -21,12 +21,10 @@ # Blather::Stream connection EM.connect('127.0.0.1', server_port, Blather::Stream::Component, client, jid, 'secret') { |c| @stream = c } } end - after { sleep 0.1; @stream.cleanup if @stream } - it 'can be started' do params = [client, 'comp.id', 'secret', 'host', 1234] EM.expects(:connect).with do |*parms| parms[0] == 'host' && parms[1] == 1234 && @@ -68,9 +66,11 @@ it 'starts the stream once the connection is complete' do mocked_server(1) { |val, _| EM.stop; val.should match(/stream:stream/) } end it 'sends stanzas to the client when the stream is ready' do + pending "This hangs the test suite" if jruby? + client.stubs :post_init client.expects(:receive_data).with do |n| EM.stop n.kind_of? Blather::XMPPNode end