diff options
Diffstat (limited to 'spec/ruby/library/socket/unixsocket')
-rw-r--r-- | spec/ruby/library/socket/unixsocket/initialize_spec.rb | 10 | ||||
-rw-r--r-- | spec/ruby/library/socket/unixsocket/pair_spec.rb | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/spec/ruby/library/socket/unixsocket/initialize_spec.rb b/spec/ruby/library/socket/unixsocket/initialize_spec.rb index 13b6972f03..bf7896ab0e 100644 --- a/spec/ruby/library/socket/unixsocket/initialize_spec.rb +++ b/spec/ruby/library/socket/unixsocket/initialize_spec.rb @@ -33,6 +33,16 @@ with_feature :unix_socket do it 'sets the socket to binmode' do @socket.binmode?.should be_true end + + it 'sets the socket to nonblock' do + require 'io/nonblock' + @socket.should.nonblock? + end + + it 'sets the socket to close on exec' do + @socket.should.close_on_exec? + end + end end end diff --git a/spec/ruby/library/socket/unixsocket/pair_spec.rb b/spec/ruby/library/socket/unixsocket/pair_spec.rb index 9a66c56c10..d80b60894d 100644 --- a/spec/ruby/library/socket/unixsocket/pair_spec.rb +++ b/spec/ruby/library/socket/unixsocket/pair_spec.rb @@ -3,7 +3,7 @@ require_relative '../fixtures/classes' require_relative '../shared/partially_closable_sockets' with_feature :unix_socket do - describe "UNIXSocket#pair" do + describe "UNIXSocket.pair" do it_should_behave_like :partially_closable_sockets before :each do |