diff options
Diffstat (limited to 'test/drb')
-rw-r--r-- | test/drb/test_drb.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb index 468c97017d..5719f60b80 100644 --- a/test/drb/test_drb.rb +++ b/test/drb/test_drb.rb @@ -102,6 +102,15 @@ class TestDRbYield < Test::Unit::TestCase @there.xarray_each {|x| assert_kind_of(XArray, x)} @there.xarray_each {|*x| assert_kind_of(XArray, x[0])} end + + def test_06_taint + x = proc {} + assert(! x.tainted?) + @there.echo_yield(x) {|o| + assert_equal(x, o) + assert(! x.tainted?) + } + end end class TestRubyYield < TestDRbYield |