diff options
author | kaustubh-d <kaustubh@clogeny.com> | 2014-08-25 16:01:21 +0530 |
---|---|---|
committer | kaustubh-d <kaustubh@clogeny.com> | 2014-08-25 16:01:21 +0530 |
commit | 4c88754529539a2f80260094e81863aab03bb857 (patch) | |
tree | 4d2e4cb2cb0d7dcd45f5224ef391aedf6324db18 /spec | |
parent | 34c89dff6a872cc4d426f78aa2715af354ad1305 (diff) | |
download | mixlib-shellout-4c88754529539a2f80260094e81863aab03bb857.tar.gz |
remove #clean_parent_file_descriptors which is not required now.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/mixlib/shellout_spec.rb | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb index ff493c2..dca66ae 100644 --- a/spec/mixlib/shellout_spec.rb +++ b/spec/mixlib/shellout_spec.rb @@ -1318,19 +1318,5 @@ describe Mixlib::ShellOut do end end end - - describe "#clean_parent_file_descriptors", :unix_only do - # test for for_fd returning a valid File object, but close - # throwing EBADF. - it "should not throw an exception if fd.close throws EBADF" do - fd = double('File') - fd.stub(:close).at_least(:once).and_raise(Errno::EBADF) - File.should_receive(:for_fd).at_least(:once).and_return(fd) - shellout = Mixlib::ShellOut.new() - shellout.instance_variable_set(:@process_status_pipe, [ 98, 99 ]) - lambda { shellout.send(:clean_parent_file_descriptors) }.should_not raise_error - end - end - end end |