1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
eregon 2019-02-07 16:35:33 +00:00
parent 5c7c6763f6
commit 75334db3c6
111 changed files with 1031 additions and 231 deletions

View file

@ -451,7 +451,7 @@ describe "Process.spawn" do
# redirection
it "redirects STDOUT to the given file descriptior if out: Fixnum" do
it "redirects STDOUT to the given file descriptor if out: Fixnum" do
File.open(@name, 'w') do |file|
lambda do
Process.wait Process.spawn("echo glark", out: file.fileno)
@ -477,7 +477,7 @@ describe "Process.spawn" do
File.read(@name).should == "glark\n"
end
it "redirects STDERR to the given file descriptior if err: Fixnum" do
it "redirects STDERR to the given file descriptor if err: Fixnum" do
File.open(@name, 'w') do |file|
lambda do
Process.wait Process.spawn("echo glark>&2", err: file.fileno)
@ -506,7 +506,7 @@ describe "Process.spawn" do
end
end
it "redirects both STDERR and STDOUT to the given file descriptior" do
it "redirects both STDERR and STDOUT to the given file descriptor" do
File.open(@name, 'w') do |file|
lambda do
Process.wait Process.spawn(ruby_cmd("print(:glark); STDOUT.flush; STDERR.print(:bang)"),