Permalink
Browse files

Merge pull request #11959 from razielgn/skip-global-safe-tests-on-rub…

…inius

Skip tests involving $SAFE on Rubinius, it's not supported.
  • Loading branch information...
2 parents a778318 + a9f6c8f commit 11d1d7ad4dfff7f47867f48c1a1b99f3ee15f89c @rafaelfranca rafaelfranca committed Aug 21, 2013
Showing with 6 additions and 0 deletions.
  1. +4 −0 activesupport/test/abstract_unit.rb
  2. +2 −0 activesupport/test/core_ext/thread_test.rb
@@ -24,3 +24,7 @@
# Show backtraces for deprecated behavior for quicker cleanup.
ActiveSupport::Deprecation.debug = true
+
+def rubinius_skip(message = '')
+ skip message if RUBY_ENGINE == 'rbx'
+end
@@ -73,6 +73,8 @@ def test_thread_variable_frozen_after_set
end
def test_thread_variable_security
+ rubinius_skip "$SAFE is not supported on Rubinius."
+
t = Thread.new { sleep }
assert_raises(SecurityError) do

0 comments on commit 11d1d7a

Please sign in to comment.