Skip to content

Commit

Permalink
🔥 Drop YAML.unsafe_load_file refinement (tests only)
Browse files Browse the repository at this point in the history
This is obsolete.  The version of `yaml` that comes with the minimum
ruby version now supports `unsafe_load_file`.
  • Loading branch information
nevans committed Nov 11, 2024
1 parent ea47e34 commit 3e7ed21
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions test/net/imap/net_imap_test_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@
require "test/unit"
require "yaml"

# Compatibility with older versions, e.g. the version comes with ruby 2.7
module YAMLPolyfill
unless YAML.respond_to? :unsafe_load_file
refine YAML.singleton_class do
def unsafe_load_file(...) load_file(...) end
end
end
end
using YAMLPolyfill

module NetIMAPTestHelpers
module TestFixtureGenerators

Expand Down

0 comments on commit 3e7ed21

Please sign in to comment.