Skip to content

Commit 3e7ed21

Browse files
committed
🔥 Drop YAML.unsafe_load_file refinement (tests only)
This is obsolete. The version of `yaml` that comes with the minimum ruby version now supports `unsafe_load_file`.
1 parent ea47e34 commit 3e7ed21

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

test/net/imap/net_imap_test_helpers.rb

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,6 @@
44
require "test/unit"
55
require "yaml"
66

7-
# Compatibility with older versions, e.g. the version comes with ruby 2.7
8-
module YAMLPolyfill
9-
unless YAML.respond_to? :unsafe_load_file
10-
refine YAML.singleton_class do
11-
def unsafe_load_file(...) load_file(...) end
12-
end
13-
end
14-
end
15-
using YAMLPolyfill
16-
177
module NetIMAPTestHelpers
188
module TestFixtureGenerators
199

0 commit comments

Comments
 (0)