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:
parent
cc7455dd1e
commit
9914d6e992
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue