summaryrefslogtreecommitdiff
path: root/spec/ruby/library/socket/unixsocket/initialize_spec.rb
diff options
context:
space:
mode:
authorBenoit Daloze <[email protected]>2024-02-05 16:29:57 +0100
committerBenoit Daloze <[email protected]>2024-02-05 16:29:57 +0100
commit40642cd3bc581d3bb402ea5e8e61cdfb868b4f68 (patch)
tree077cc3ac94f880ce3c8c98322331c01cb1cc9cb8 /spec/ruby/library/socket/unixsocket/initialize_spec.rb
parentabe07d4bf5f2f848b22e511a647a85c878066adb (diff)
Update to ruby/spec@3fc4444
Diffstat (limited to 'spec/ruby/library/socket/unixsocket/initialize_spec.rb')
-rw-r--r--spec/ruby/library/socket/unixsocket/initialize_spec.rb10
1 files changed, 10 insertions, 0 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