Skip to content
This repository was archived by the owner on Nov 30, 2024. It is now read-only.

Conversation

yujinakayama
Copy link
Member

$SAFE level 2, 3, and 4 are no longer available on MRI 2.3.

https://bugs.ruby-lang.org/issues/5455#note-16

Failures:

  1) RSpec::Core::Formatters::HtmlSnippetExtractor falls back on a default message when it gets a security error
     Failure/Error: ignoring_warnings { $SAFE = 3 }

     ArgumentError:
       $SAFE=2 to 4 are obsolete
     # ./spec/support/helper_methods.rb:16:in `block (2 levels) in with_safe_set_to_level_that_triggers_security_errors'
     # ./spec/support/helper_methods.rb:9:in `ignoring_warnings'
     # ./spec/support/helper_methods.rb:16:in `block in with_safe_set_to_level_that_triggers_security_errors'

    ArgumentError:
      $SAFE=2 to 4 are obsolete
JonRowe added a commit that referenced this pull request Dec 31, 2015
Fix failing specs caused by $SAFE incompatibility on MRI 2.3
@JonRowe JonRowe merged commit fcf21e6 into master Dec 31, 2015
@JonRowe
Copy link
Member

JonRowe commented Dec 31, 2015

👍

@JonRowe JonRowe deleted the fix-specs-on-mri-2.3 branch December 31, 2015 14:56
@myronmarston
Copy link
Member

Someone's on a roll!

JonRowe added a commit that referenced this pull request Jan 7, 2016
Fix failing specs caused by $SAFE incompatibility on MRI 2.3
MatheusRich pushed a commit to MatheusRich/rspec-core that referenced this pull request Oct 30, 2020
Fix failing specs caused by $SAFE incompatibility on MRI 2.3
yujinakayama pushed a commit to yujinakayama/rspec-monorepo that referenced this pull request Oct 6, 2021
…on-mri-2.3

Fix failing specs caused by $SAFE incompatibility on MRI 2.3

---
This commit was imported from rspec/rspec-core@ddf7724.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants