We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f151e01 + 2b3a71d commit 4c6cb8cCopy full SHA for 4c6cb8c
spec/support/helper_methods.rb
@@ -15,8 +15,9 @@ def ignoring_warnings
15
end
16
17
# In Ruby 2.7 taint was removed and has no effect, whilst SAFE warns that it
18
- # has no effect and will become a normal varible in 3.0.
19
- if RUBY_VERSION >= '2.7'
+ # has no effect and will become a normal varible in 3.0. Other engines do not
+ # implement SAFE.
20
+ if RUBY_VERSION >= '2.7' || (defined?(RUBY_ENGINE) && RUBY_ENGINE != "ruby")
21
def with_safe_set_to_level_that_triggers_security_errors
22
yield
23
0 commit comments