Skip to content

Commit 4731fc6

Browse files
committed
Fix specs for Kernel#raise and supress Rubocop warnings
The tests were broken in a recent commit that fixes Rubocop warnings. So just suppress them.
1 parent bf35e14 commit 4731fc6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/kernel/raise_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ class << public_raiser
7474
end
7575

7676
it "re-raises a previously rescued exception with overwriting the cause when it's explicitly specified with :cause option" do
77-
check = -> raiser, re_raiser_with_cause do
77+
check = -> ((raiser, re_raiser_with_cause)) do # rubocop:disable Style/StabbyLambdaParentheses
7878
e4 = RuntimeError.new("Error 4")
7979
begin
8080
begin
@@ -98,7 +98,7 @@ class << public_raiser
9898
end
9999

100100
it "re-raises a previously rescued exception without overwriting the cause when it's explicitly specified with a :cause option that has nil value" do
101-
check = -> raiser, re_raiser_with_cause do
101+
check = -> ((raiser, re_raiser_with_cause)) do # rubocop:disable Style/StabbyLambdaParentheses
102102
begin
103103
begin
104104
begin

0 commit comments

Comments
 (0)