summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-13 15:44:36 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-02-13 15:44:36 +0000
commit963c7a338d6a8d2b265f6c41d2b5d876e84abfd2 (patch)
treed8e3ae64b3871778cdeae3b128ccc5b08c0f5f9a /test
parentcb375567f6fcb7682ac86a467a9de37e5d73155e (diff)
pass DRb info to sub thread
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/drb/test_drb.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index ae8ba42..16d4731 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -241,12 +241,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