Skip to content

Commit 29674df

Browse files
committedOct 10, 2015
change => to is
1 parent cbe875e commit 29674df

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed
 

‎spec/ruby/shared/process/spawn.rb

+14-14
Original file line numberDiff line numberDiff line change
@@ -229,19 +229,19 @@
229229
end.should output_to_fd(Process.getpgid(Process.pid).to_s)
230230
end
231231

232-
it "joins the current process if :pgroup => false" do
232+
it "joins the current process if :pgroup is false" do
233233
lambda do
234234
Process.wait @object.spawn(ruby_cmd("print Process.getpgid(Process.pid)"), :pgroup => false)
235235
end.should output_to_fd(Process.getpgid(Process.pid).to_s)
236236
end
237237

238-
it "joins the current process if :pgroup => nil" do
238+
it "joins the current process if :pgroup is nil" do
239239
lambda do
240240
Process.wait @object.spawn(ruby_cmd("print Process.getpgid(Process.pid)"), :pgroup => nil)
241241
end.should output_to_fd(Process.getpgid(Process.pid).to_s)
242242
end
243243

244-
it "joins a new process group if :pgroup => true" do
244+
it "joins a new process group if :pgroup is true" do
245245
process = lambda do
246246
Process.wait @object.spawn(ruby_cmd("print Process.getpgid(Process.pid)"), :pgroup => true)
247247
end
@@ -250,7 +250,7 @@
250250
process.should output_to_fd(/\d+/)
251251
end
252252

253-
it "joins a new process group if :pgroup => 0" do
253+
it "joins a new process group if :pgroup is 0" do
254254
process = lambda do
255255
Process.wait @object.spawn(ruby_cmd("print Process.getpgid(Process.pid)"), :pgroup => 0)
256256
end
@@ -259,7 +259,7 @@
259259
process.should output_to_fd(/\d+/)
260260
end
261261

262-
it "joins the specified process group if :pgroup => pgid" do
262+
it "joins the specified process group if :pgroup is pgid" do
263263
lambda do
264264
Process.wait @object.spawn(ruby_cmd("print Process.getpgid(Process.pid)"), :pgroup => 123)
265265
end.should_not output_to_fd("123")
@@ -334,49 +334,49 @@
334334

335335
# redirection
336336

337-
it "redirects STDOUT to the given file descriptior if :out => Fixnum" do
337+
it "redirects STDOUT to the given file descriptior if :out is Fixnum" do
338338
File.open(@name, 'w') do |file|
339339
lambda do
340340
Process.wait @object.spawn(ruby_cmd("print :glark"), :out => file.fileno)
341341
end.should output_to_fd("glark", file)
342342
end
343343
end
344344

345-
it "redirects STDOUT to the given file if :out => IO" do
345+
it "redirects STDOUT to the given file if :out is IO" do
346346
File.open(@name, 'w') do |file|
347347
lambda do
348348
Process.wait @object.spawn(ruby_cmd("print :glark"), :out => file)
349349
end.should output_to_fd("glark", file)
350350
end
351351
end
352352

353-
it "redirects STDOUT to the given file if :out => String" do
353+
it "redirects STDOUT to the given file if :out is String" do
354354
Process.wait @object.spawn(ruby_cmd("print :glark"), :out => @name)
355355
@name.should have_data("glark")
356356
end
357357

358-
it "redirects STDERR to the given file descriptior if :err => Fixnum" do
358+
it "redirects STDERR to the given file descriptior if :err is Fixnum" do
359359
File.open(@name, 'w') do |file|
360360
lambda do
361361
Process.wait @object.spawn(ruby_cmd("STDERR.print :glark"), :err => file.fileno)
362362
end.should output_to_fd("glark", file)
363363
end
364364
end
365365

366-
it "redirects STDERR to the given file descriptor if :err => IO" do
366+
it "redirects STDERR to the given file descriptor if :err is IO" do
367367
File.open(@name, 'w') do |file|
368368
lambda do
369369
Process.wait @object.spawn(ruby_cmd("STDERR.print :glark"), :err => file)
370370
end.should output_to_fd("glark", file)
371371
end
372372
end
373373

374-
it "redirects STDERR to the given file if :err => String" do
374+
it "redirects STDERR to the given file if :err is String" do
375375
Process.wait @object.spawn(ruby_cmd("STDERR.print :glark"), :err => @name)
376376
@name.should have_data("glark")
377377
end
378378

379-
it "redirects STDERR to child STDOUT if :err => [:child, :out]" do
379+
it "redirects STDERR to child STDOUT if :err is [:child, :out]" do
380380
File.open(@name, 'w') do |file|
381381
lambda do
382382
Process.wait @object.spawn(ruby_cmd("STDERR.print :glark"), :out => file, :err => [:child, :out])
@@ -410,7 +410,7 @@
410410
@name.should have_data("")
411411
end
412412

413-
context "when passed :close_others => true" do
413+
context "when passed :close_others is true" do
414414
before :each do
415415
@output = tmp("spawn_close_others_true")
416416
@options = { :close_others => true }
@@ -453,7 +453,7 @@
453453
end
454454
end
455455

456-
context "when passed :close_others => false" do
456+
context "when passed :close_others is false" do
457457
before :each do
458458
@output = tmp("spawn_close_others_false")
459459
@options = { :close_others => false }

0 commit comments

Comments
 (0)
Please sign in to comment.