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

ruby-changes:58705

From: Nobuyoshi <ko1@a...>
Date: Mon, 11 Nov 2019 12:09:46 +0900 (JST)
Subject: [ruby-changes:58705] 6f9be8505d (master): Relaxed warning assertions

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

From 6f9be8505d172b110ec449478a791d70b9b74afb Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 11 Nov 2019 12:09:19 +0900
Subject: Relaxed warning assertions


diff --git a/test/rubygems/test_require.rb b/test/rubygems/test_require.rb
index 1590c04..8972b6c 100644
--- a/test/rubygems/test_require.rb
+++ b/test/rubygems/test_require.rb
@@ -509,11 +509,11 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L509
         _, err = capture_subprocess_io do
           system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
         end
-        assert_equal "main.rb:1: warning: uplevel\ntest\n", err
+        assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
         _, err = capture_subprocess_io do
           system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
         end
-        assert_equal "main.rb:1: warning: uplevel\ntest\n", err
+        assert_includes err, "main.rb:1: warning: uplevel\ntest\n"
       end
     end
 
@@ -524,11 +524,11 @@ class TestGemRequire < Gem::TestCase https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_require.rb#L524
         _, err = capture_subprocess_io do
           system(@@ruby, "-w", "-rpp", "--disable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
         end
-        assert_equal "{:x=>1}\n{:y=>2}\n", err
+        assert_includes err, "{:x=>1}\n{:y=>2}\n"
         _, err = capture_subprocess_io do
           system(@@ruby, "-w", "-rpp", "--enable=gems", "-I", lib, "-C", dir, "-I.", "main.rb")
         end
-        assert_equal "{:x=>1}\n{:y=>2}\n", err
+        assert_includes err, "{:x=>1}\n{:y=>2}\n"
       end
     end
   end
-- 
cgit v0.10.2


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

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