diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-05-11 13:49:20 -0700 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2021-05-17 11:20:46 +0900 |
commit | 42b20bdbfe770053e02948e9577bdd412a8c98cf (patch) | |
tree | fcefb4937d0e282f02bddfa2cbc46ab112463140 /test/psych/test_psych.rb | |
parent | b0e21197ceb5329f751c421510048055d3c2af57 (diff) |
[ruby/psych] remove deprecated interface
https://github.com/ruby/psych/commit/0767227051
Diffstat (limited to 'test/psych/test_psych.rb')
-rw-r--r-- | test/psych/test_psych.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb index 912bcb9a78..256ed9110c 100644 --- a/test/psych/test_psych.rb +++ b/test/psych/test_psych.rb @@ -78,10 +78,6 @@ class TestPsych < Psych::TestCase assert_raise(Psych::SyntaxError) { Psych.parse("--- `") } end - def test_parse_with_fallback - assert_equal 42, Psych.parse("", fallback: 42) - end - def test_non_existing_class_on_deserialize e = assert_raise(ArgumentError) do Psych.unsafe_load("--- !ruby/object:NonExistent\nfoo: 1") @@ -239,11 +235,11 @@ class TestPsych < Psych::TestCase end def test_load_with_fallback_for_nil - assert_nil Psych.unsafe_load("--- null", "file", fallback: 42) + assert_nil Psych.unsafe_load("--- null", filename: "file", fallback: 42) end def test_load_with_fallback_for_false - assert_equal false, Psych.unsafe_load("--- false", "file", fallback: 42) + assert_equal false, Psych.unsafe_load("--- false", filename: "file", fallback: 42) end def test_load_file |