spec/tcpsocket_spec.rb in em-synchrony-1.0.0 vs spec/tcpsocket_spec.rb in em-synchrony-1.0.1

- old
+ new

@@ -15,6 +15,16 @@ EventMachine::Synchrony::TCPSocket.new 'localhost', 12345 }.should raise_error(SocketError) EM.stop end end + + it 'should accept "send" when wrapped in a connection pool' do + EventMachine.synchrony do + @socket = EventMachine::Synchrony::ConnectionPool.new(size: 1) do + EventMachine::Synchrony::TCPSocket.new 'eventmachine.rubyforge.org', 80 + end + @socket.send("GET / HTTP1.1\r\n\r\n").class.should be(Fixnum) + EM.stop + end + end end