1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

update unittest, port from v1.8

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7986 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2005-02-16 15:30:52 +00:00
parent 482abfc851
commit 8fd62dccb2
3 changed files with 10 additions and 3 deletions

View file

@ -233,12 +233,16 @@ class TestDRbEval < Test::Unit::TestCase
remote_class = four.remote_class
assert_equal(1, remote_class.class_eval('1'))
assert_equal(1, remote_class.module_eval('1'))
assert_raises(SecurityError) do
remote_class.class_eval('ENV.inspect')
remote_class.class_eval('ENV = {}')
end
assert_raises(SecurityError) do
remote_class.module_eval('ENV.inspect')
remote_class.module_eval('ENV = {}')
end
end
end