diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-04-17 16:03:05 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-04-17 18:47:07 +0900 |
commit | 09638741ba4d9547a0e48af8c767744fb1d7f68d (patch) | |
tree | 9fc723c63d3594e0b420d14fc7d9e876ab073125 /spec/ruby/core/thread/each_caller_location_spec.rb | |
parent | 7bc66a366ded3ae2d07a418e17a9da6ee24612fd (diff) |
[Feature #20335] `Thread.each_caller_location` arguments
Accecpt the same arguments as `caller` and `caller_locations`.
Diffstat (limited to 'spec/ruby/core/thread/each_caller_location_spec.rb')
-rw-r--r-- | spec/ruby/core/thread/each_caller_location_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/thread/each_caller_location_spec.rb b/spec/ruby/core/thread/each_caller_location_spec.rb index dbece06cd8..29c271789b 100644 --- a/spec/ruby/core/thread/each_caller_location_spec.rb +++ b/spec/ruby/core/thread/each_caller_location_spec.rb @@ -40,10 +40,10 @@ describe "Thread.each_caller_location" do }.should raise_error(LocalJumpError, "no block given") end - it "doesn't accept positional and keyword arguments" do + it "doesn't accept keyword arguments" do -> { Thread.each_caller_location(12, foo: 10) {} - }.should raise_error(ArgumentError, "wrong number of arguments (given 2, expected 0)") + }.should raise_error(ArgumentError); end end end |