summaryrefslogtreecommitdiff
path: root/test/json/json_addition_test.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2024-11-06 12:51:06 +0900
committerJean Boussier <[email protected]>2024-11-06 23:31:30 +0100
commit8254f6492c49ce7ace6b12af981034083066176e (patch)
tree61ee11a49b28923651fb5814a437dbdfd414c8e8 /test/json/json_addition_test.rb
parentfdc82cca83bbbfe88f90d2888e139a6dde481101 (diff)
[ruby/json] Categorize deprecated warning
https://github.com/ruby/json/commit/1acce7aceb
Diffstat (limited to 'test/json/json_addition_test.rb')
-rw-r--r--test/json/json_addition_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/json/json_addition_test.rb b/test/json/json_addition_test.rb
index d78ae55c3c..1eb269c2f6 100644
--- a/test/json/json_addition_test.rb
+++ b/test/json/json_addition_test.rb
@@ -163,7 +163,7 @@ class JSONAdditionTest < Test::Unit::TestCase
end
def test_deprecated_load_create_additions
- assert_warning(/use JSON\.unsafe_load/) do
+ assert_deprecated_warning(/use JSON\.unsafe_load/) do
JSON.load(JSON.dump(Time.now))
end
end