Makes the receiver to FrozenError.new a keyword parameter

[Feature #16419]
This commit is contained in:
Nobuyoshi Nakada 2019-12-20 14:14:07 +09:00
parent 216b62aa87
commit 435a4ca2a3
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60
3 changed files with 17 additions and 10 deletions

View file

@ -845,7 +845,7 @@ end.join
def test_frozen_error_initialize
obj = Object.new
exc = FrozenError.new("bar", obj)
exc = FrozenError.new("bar", receiver: obj)
assert_equal("bar", exc.message)
assert_same(obj, exc.receiver)