Remove use of ruby taint API for ruby 3.2 compatibility

This commit is contained in:
Dylan Thacker-Smith
2023-01-10 13:11:18 -05:00
parent f2f467bdbc
commit 01d52d72d9
5 changed files with 5 additions and 64 deletions
-8
View File
@@ -69,14 +69,6 @@ module Minitest
Liquid::Strainer.class_variable_set(:@@global_strainer, original_global_strainer)
end
def with_taint_mode(mode)
old_mode = Liquid::Template.taint_mode
Liquid::Template.taint_mode = mode
yield
ensure
Liquid::Template.taint_mode = old_mode
end
def with_error_mode(mode)
old_mode = Liquid::Template.error_mode
Liquid::Template.error_mode = mode