diff options
Diffstat (limited to 'spec/ruby/core/dir/shared/open.rb')
-rw-r--r-- | spec/ruby/core/dir/shared/open.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/ruby/core/dir/shared/open.rb b/spec/ruby/core/dir/shared/open.rb index 6df361e452..63e9036053 100644 --- a/spec/ruby/core/dir/shared/open.rb +++ b/spec/ruby/core/dir/shared/open.rb @@ -65,6 +65,7 @@ describe :dir_open, shared: true do it 'sets the close-on-exec flag for the directory file descriptor' do Dir.send(@method, DirSpecs.mock_dir) do |dir| io = IO.for_fd(dir.fileno) + io.autoclose = false io.close_on_exec?.should == true end end |