[前][次][番号順一覧][スレッド一覧]

ruby-changes:56580

From: Nobuyoshi <ko1@a...>
Date: Tue, 16 Jul 2019 22:07:34 +0900 (JST)
Subject: [ruby-changes:56580] Nobuyoshi Nakada: 6ab95fb741 (master): Removed twisted tests

https://git.ruby-lang.org/ruby.git/commit/?id=6ab95fb741

From 6ab95fb741168895f9aebe8d6c45e5242cc81f2b Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Tue, 16 Jul 2019 22:00:54 +0900
Subject: Removed twisted tests

Why does only Process.daemon have these tests?

diff --git a/spec/ruby/core/process/daemon_spec.rb b/spec/ruby/core/process/daemon_spec.rb
index 9567382..b472a3b 100644
--- a/spec/ruby/core/process/daemon_spec.rb
+++ b/spec/ruby/core/process/daemon_spec.rb
@@ -86,10 +86,6 @@ platform_is_not :windows do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/daemon_spec.rb#L86
       @daemon.invoke("stay_in_dir", [true]).should == @invoke_dir
     end
 
-    it "does not change to the root directory if the first argument is non-false" do
-      @daemon.invoke("stay_in_dir", [:yes]).should == @invoke_dir
-    end
-
     describe "when the second argument is not given" do
       it_behaves_like :process_daemon_keep_stdio_open_false, nil, [false]
     end
@@ -105,10 +101,6 @@ platform_is_not :windows do https://github.com/ruby/ruby/blob/trunk/spec/ruby/core/process/daemon_spec.rb#L101
     describe "when the second argument is true" do
       it_behaves_like :process_daemon_keep_stdio_open_true, nil, [false, true]
     end
-
-    describe "when the second argument is non-false" do
-      it_behaves_like :process_daemon_keep_stdio_open_true, nil, [false, :yes]
-    end
   end
 end
 
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]