Skip to content
Browse files
add spec for Process.spawn redirecting STDERR to child STDOUT
  • Loading branch information
tak1n committed Oct 10, 2015
1 parent c8ce8a7 commit 008cd1ebc0257c51b0dd0676dc0b955a1aa6ea8c
Showing 1 changed file with 8 additions and 0 deletions.
@@ -376,6 +376,14 @@
@name.should have_data("glark")

it "redirects STDERR to child STDOUT if :err => [:child, :out]" do, 'w') do |file|
lambda do
Process.wait @object.spawn(ruby_cmd("STDERR.print :glark"), :out => file, :err => [:child, :out])
end.should output_to_fd("glark", file)

it "redirects both STDERR and STDOUT to the given file descriptior" do, 'w') do |file|
lambda do

0 comments on commit 008cd1e

Please sign in to comment.