aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 14:14:07 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-12-20 14:18:20 +0900
commit435a4ca2a38f3be1f5d2db0f71487a52c8285e9c (patch)
tree11388cf5f47b7944287db1388c86eb176a019593 /test
parent216b62aa87f069c51085e9f9abb548930370bc53 (diff)
downloadruby-435a4ca2a38f3be1f5d2db0f71487a52c8285e9c.tar.gz
Makes the receiver to FrozenError.new a keyword parameter
[Feature #16419]
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_exception.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb
index c7cfe816b0..94b59dac47 100644
--- a/test/ruby/test_exception.rb
+++ b/test/ruby/test_exception.rb
@@ -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)