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

ruby-changes:61056

From: Hiroshi <ko1@a...>
Date: Fri, 8 May 2020 07:39:17 +0900 (JST)
Subject: [ruby-changes:61056] 7050f86ae1 (master): [rubygems/rubygems] Removed deprecated methods for Minitest5

https://git.ruby-lang.org/ruby.git/commit/?id=7050f86ae1

From 7050f86ae16c957d662afc0e1b3e15369816cce9 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Mon, 30 Mar 2020 21:38:24 +0900
Subject: [rubygems/rubygems] Removed deprecated methods for Minitest5

  It was migrated on ruby core repository too.

  https://github.com/ruby/ruby/commit/e5db3da9d34f0a7595208863301c044b612adbed

https://github.com/rubygems/rubygems/commit/848bbe3c76

diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
index a767869..b5c377f 100644
--- a/lib/rubygems/test_case.rb
+++ b/lib/rubygems/test_case.rb
@@ -127,11 +127,6 @@ class Gem::TestCase < Minitest::Test https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L127
     assert_equal expected.sort, loaded.sort if expected
   end
 
-  def assert_path_exists(path, msg = nil)
-    msg = message(msg) { "Expected path '#{path}' to exist" }
-    assert File.exist?(path), msg
-  end
-
   def assert_directory_exists(path, msg = nil)
     msg = message(msg) { "Expected path '#{path}' to be a directory" }
     assert_path_exists path
@@ -225,11 +220,6 @@ class Gem::TestCase < Minitest::Test https://github.com/ruby/ruby/blob/trunk/lib/rubygems/test_case.rb#L220
     end
   end
 
-  def refute_path_exists(path, msg = nil)
-    msg = message(msg) { "Expected path '#{path}' to not exist" }
-    refute File.exist?(path), msg
-  end
-
   def scan_make_command_lines(output)
     output.scan(/^#{Regexp.escape make_command}(?:[[:blank:]].*)?$/)
   end
-- 
cgit v0.10.2


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

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