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

ruby-changes:56813

From: Nobuyoshi <ko1@a...>
Date: Mon, 5 Aug 2019 11:59:27 +0900 (JST)
Subject: [ruby-changes:56813] Nobuyoshi Nakada: 521e25baa4 (master): Fixed assertion

https://git.ruby-lang.org/ruby.git/commit/?id=521e25baa4

From 521e25baa42c31cc40e60c1da3a5e8e147255ef9 Mon Sep 17 00:00:00 2001
From: Nobuyoshi Nakada <nobu@r...>
Date: Mon, 5 Aug 2019 11:47:25 +0900
Subject: Fixed assertion

The regexp should be expected to match the error message.

diff --git a/test/ruby/test_process.rb b/test/ruby/test_process.rb
index c51f802..b96acb1 100644
--- a/test/ruby/test_process.rb
+++ b/test/ruby/test_process.rb
@@ -258,7 +258,7 @@ class TestProcess < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_process.rb#L258
       end
     end;
 
-    assert_raise(ArgumentError, /rlimit_cpu/) {
+    assert_raise_with_message(ArgumentError, /rlimit_cpu/) {
       system(RUBY, '-e', 'exit', "rlimit_cpu\0".to_sym => 3600)
     }
   end
-- 
cgit v0.10.2


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

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