spec/celluloid/io/tcp_server_spec.rb in celluloid-io-0.14.1 vs spec/celluloid/io/tcp_server_spec.rb in celluloid-io-0.15.0.pre

- old
+ new

@@ -2,9 +2,13 @@ describe Celluloid::IO::TCPServer do describe "#accept" do let(:payload) { 'ohai' } + it "can be initialized without a host" do + expect{ server = Celluloid::IO::TCPServer.new(2000); server.close }.to_not raise_error + end + context "inside Celluloid::IO" do it "should be evented" do with_tcp_server do |subject| within_io_actor { Celluloid::IO.evented? }.should be_true end