diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2022-02-25 20:34:59 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2022-02-25 20:39:47 +0900 |
commit | 8780f15fd740a893095e749ef65f5f957fee37e3 (patch) | |
tree | 88dab4bda96aa07b9fa72d87f5bad464c4948352 /tool/lib | |
parent | 0db5ee519588808bf1942243843551f58e8d3b35 (diff) | |
download | ruby-8780f15fd740a893095e749ef65f5f957fee37e3.tar.gz |
[ruby/date] Use `assert_deprecated_warn`
https://github.com/ruby/date/commit/c55004715a
Diffstat (limited to 'tool/lib')
-rw-r--r-- | tool/lib/core_assertions.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tool/lib/core_assertions.rb b/tool/lib/core_assertions.rb index e9c586f910..723a1742c5 100644 --- a/tool/lib/core_assertions.rb +++ b/tool/lib/core_assertions.rb @@ -592,14 +592,14 @@ eom def assert_deprecated_warning(mesg = /deprecated/) assert_warning(mesg) do - Warning[:deprecated] = true + Warning[:deprecated] = true if Warning.respond_to?(:[]=) yield end end def assert_deprecated_warn(mesg = /deprecated/) assert_warn(mesg) do - Warning[:deprecated] = true + Warning[:deprecated] = true if Warning.respond_to?(:[]=) yield end end |