Permalink
Browse files

Merge pull request #12530 from vipulnsward/remove_thread_safe

`$SAFE = 4;` has been removed with Ruby 2.1
  • Loading branch information...
rafaelfranca committed Oct 14, 2013
2 parents ad59041 + ec620e0 commit 42a99dbaba3f9968f800d24dfdb60c51bee091b1
Showing with 0 additions and 13 deletions.
  1. +0 −13 activesupport/test/core_ext/thread_test.rb
@@ -72,17 +72,4 @@ def test_thread_variable_frozen_after_set
end
end
- def test_thread_variable_security
- rubinius_skip "$SAFE is not supported on Rubinius."
-
- t = Thread.new { sleep }
-
- assert_raises(SecurityError) do
- Thread.new { $SAFE = 4; t.thread_variable_get(:foo) }.join
- end
-
- assert_raises(SecurityError) do
- Thread.new { $SAFE = 4; t.thread_variable_set(:foo, :baz) }.join
- end
- end
end

0 comments on commit 42a99db

Please sign in to comment.