Skip to content

Commit 32c5ac4

Browse files
andrykonchinheadius
authored andcommitted
Fix Kernel.warn and don't call Warning#warn if a specified category is disabled
1 parent 210a8a6 commit 32c5ac4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/warning/warn_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ def Warning.warn(msg)
121121
end
122122
end
123123

124-
ruby_bug '#19530', ''...'3.4' do
124+
ruby_bug '#20573', ''...'3.4' do
125125
it "isn't called by Kernel.warn when category is :deprecated but Warning[:deprecated] is false" do
126126
warn_deprecated = Warning[:deprecated]
127127
begin

0 commit comments

Comments
 (0)