aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2013-10-14 21:52:25 +0530
committerVipul A M <vipulnsward@gmail.com>2013-10-14 21:52:25 +0530
commitec620e0984ce3159dc4c2fc8626982be3cfaca2a (patch)
treed9a89c6708d8dcc31f26b811704e243ad413c8bd /activesupport/test
parentad590413b45bbb3d3f291063158e8c2692e7dc49 (diff)
downloadrails-ec620e0984ce3159dc4c2fc8626982be3cfaca2a.tar.gz
rails-ec620e0984ce3159dc4c2fc8626982be3cfaca2a.tar.bz2
rails-ec620e0984ce3159dc4c2fc8626982be3cfaca2a.zip
`$SAFE = 4;` has been removed with Ruby 2.1
For background - https://bugs.ruby-lang.org/issues/8468 Changset - https://bugs.ruby-lang.org/projects/ruby-trunk/repository/revisions/41259/diff/test/ruby/test_thread.rb
Diffstat (limited to 'activesupport/test')
-rw-r--r--activesupport/test/core_ext/thread_test.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/activesupport/test/core_ext/thread_test.rb b/activesupport/test/core_ext/thread_test.rb
index 54d2dcd8dd..6a7c6e0604 100644
--- a/activesupport/test/core_ext/thread_test.rb
+++ b/activesupport/test/core_ext/thread_test.rb
@@ -72,17 +72,4 @@ class ThreadExt < ActiveSupport::TestCase
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