summaryrefslogtreecommitdiff
path: root/test/psych/test_exception.rb
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2021-05-11 13:49:20 -0700
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-05-17 11:20:46 +0900
commit42b20bdbfe770053e02948e9577bdd412a8c98cf (patch)
treefcefb4937d0e282f02bddfa2cbc46ab112463140 /test/psych/test_exception.rb
parentb0e21197ceb5329f751c421510048055d3c2af57 (diff)
[ruby/psych] remove deprecated interface
https://github.com/ruby/psych/commit/0767227051
Diffstat (limited to 'test/psych/test_exception.rb')
-rw-r--r--test/psych/test_exception.rb18
1 files changed, 0 insertions, 18 deletions
diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb
index d2ae76a7d2..c1e69ab18d 100644
--- a/test/psych/test_exception.rb
+++ b/test/psych/test_exception.rb
@@ -53,12 +53,6 @@ module Psych
Psych.load '--- `', filename: 'meow'
end
assert_equal 'meow', ex.file
-
- # deprecated interface
- ex = assert_raise(Psych::SyntaxError) do
- Psych.unsafe_load '--- `', 'deprecated'
- end
- assert_equal 'deprecated', ex.file
end
def test_psych_parse_stream_takes_file
@@ -86,12 +80,6 @@ module Psych
Psych.load_stream '--- `', filename: 'omg!'
end
assert_equal 'omg!', ex.file
-
- # deprecated interface
- ex = assert_raise(Psych::SyntaxError) do
- Psych.load_stream '--- `', 'deprecated'
- end
- assert_equal 'deprecated', ex.file
end
def test_parse_file_exception
@@ -141,12 +129,6 @@ module Psych
Psych.parse '--- `', filename: 'omg!'
end
assert_match 'omg!', ex.message
-
- # deprecated interface
- ex = assert_raise(Psych::SyntaxError) do
- Psych.parse '--- `', 'deprecated'
- end
- assert_match 'deprecated', ex.message
end
def test_attributes