spec/celluloid/io/unix_server_spec.rb in celluloid-io-0.14.1 vs spec/celluloid/io/unix_server_spec.rb in celluloid-io-0.15.0.pre
- old
+ new
@@ -24,11 +24,11 @@
client = thread.value
client.write payload
peer.read(payload.size).should eq payload
end
end
-
+
it "raises if server already up" do
with_unix_server do |subject|
within_io_actor do
expect {
Celluloid::IO::UNIXServer.open(example_unix_sock)
@@ -53,18 +53,18 @@
client = thread.value
client.write payload
peer.read(payload.size).should eq payload
end
end
-
+
it "raises if server already up" do
with_unix_server do |subject|
expect {
Celluloid::IO::UNIXServer.open(example_unix_sock)
}.to raise_error(Errno::EADDRINUSE)
end
end
-
+
end
end
end
end