Sha256: cd84d40bf2771870f2e48b7cc94e8cb0f62bf84be2ab4848b16ff7040f3b85ca
Contents?: true
Size: 601 Bytes
Versions: 22
Compression:
Stored size: 601 Bytes
Contents
require 'spec_helper' describe UDPSocket do let(:udp_port) { 23456 } let :readable_subject do sock = UDPSocket.new sock.bind('localhost', udp_port) peer = UDPSocket.new peer.send("hi there", 0, 'localhost', udp_port) sock end let :unreadable_subject do sock = UDPSocket.new sock.bind('localhost', udp_port + 1) sock end let :writable_subject do pending "come up with a writable UDPSocket example" end let :unwritable_subject do pending "come up with a UDPSocket that's blocked on writing" end it_behaves_like "an NIO selectable" end
Version data entries
22 entries across 22 versions & 1 rubygems