ruby-changes:59013
From: Yuki <ko1@a...>
Date: Sun, 1 Dec 2019 13:26:53 +0900 (JST)
Subject: [ruby-changes:59013] 9914d6e992 (master): Relax test strictness for error message from KeyError
https://git.ruby-lang.org/ruby.git/commit/?id=9914d6e992 From 9914d6e992a69587e6d43ba7eaa6cdda9f178f8e Mon Sep 17 00:00:00 2001 From: Yuki Nishijima <yk.nishijima@g...> Date: Sat, 30 Nov 2019 23:26:09 -0500 Subject: Relax test strictness for error message from KeyError diff --git a/test/ruby/test_env.rb b/test/ruby/test_env.rb index ffce9b7..f93cd50 100644 --- a/test/ruby/test_env.rb +++ b/test/ruby/test_env.rb @@ -120,7 +120,7 @@ class TestEnv < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_env.rb#L120 assert_equal("foo", ENV.fetch("test")) ENV.delete("test") feature8649 = '[ruby-core:56062] [Feature #8649]' - e = assert_raise_with_message(KeyError, 'key not found: "test"', feature8649) do + e = assert_raise_with_message(KeyError, /key not found: "test"/, feature8649) do ENV.fetch("test") end assert_same(ENV, e.receiver) -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/