1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Relax test strictness for error message from KeyError

This commit is contained in:
Yuki Nishijima 2019-11-30 23:26:09 -05:00
parent cc7455dd1e
commit 9914d6e992

View file

@ -120,7 +120,7 @@ class TestEnv < Test::Unit::TestCase
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)