blob: a160e3ce5c8050cac01b7345ece0069bebc9bbc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
require_relative '../spec_helper'
require_relative 'shared/new'
with_feature :unix_socket do
describe "UNIXServer.new" do
it_behaves_like :unixserver_new, :new
it "does not use the given block and warns to use UNIXServer::open" do
-> {
@server = UNIXServer.new(@path) { raise }
}.should complain(/warning: UNIXServer::new\(\) does not take block; use UNIXServer::open\(\) instead/)
end
end
end
|