From 287a34ae0dfc23e4158f67cb7783d239f202c368 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 6 Mar 2009 03:56:38 +0000 Subject: * {ext,lib,test}/**/*.rb: removed trailing spaces. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/drb/drbtest.rb | 2 +- test/drb/test_acl.rb | 2 +- test/drb/test_drb.rb | 18 +++++++++--------- test/drb/ut_large.rb | 2 +- test/drb/ut_safe1.rb | 2 +- test/drb/ut_timerholder.rb | 2 +- 6 files changed, 14 insertions(+), 14 deletions(-) (limited to 'test/drb') diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb index e06139a9d6..e1d3aeedf2 100644 --- a/test/drb/drbtest.rb +++ b/test/drb/drbtest.rb @@ -98,7 +98,7 @@ module DRbCore assert_equal(6, @there.sample(onecky, 1, 2)) ary = @there.to_a assert_kind_of(DRb::DRbObject, ary) - + assert(@there.respond_to?(:to_a, true)) assert(@there.respond_to?(:eval, true)) assert(! @there.respond_to?(:eval, false)) diff --git a/test/drb/test_acl.rb b/test/drb/test_acl.rb index d8955e0e75..7fe30f4c4a 100644 --- a/test/drb/test_acl.rb +++ b/test/drb/test_acl.rb @@ -192,4 +192,4 @@ class ACLTest < Test::Unit::TestCase end end - + diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb index 57cf7175d7..0548dc7aa0 100644 --- a/test/drb/test_drb.rb +++ b/test/drb/test_drb.rb @@ -18,11 +18,11 @@ class TestDRbYield < Test::Unit::TestCase @there.echo_yield_1([]) {|one| assert_equal([], one) } - + @there.echo_yield_1(1) {|one| assert_equal(1, one) } - + @there.echo_yield_1(nil) {|one| assert_equal(nil, one) } @@ -140,7 +140,7 @@ class TestDRbRubyYield < TestDRbYield def setup @there = self end - + def teardown end end @@ -150,15 +150,15 @@ class TestDRbRuby18Yield < TestDRbRubyYield def echo_yield(*arg, &proc) proc.call(*arg) end - + def echo_yield_0(&proc) proc.call end - + def echo_yield_1(a, &proc) proc.call(a) end - + def echo_yield_2(a, b, &proc) proc.call(a, b) end @@ -217,7 +217,7 @@ class TestDRbEval # < Test::Unit::TestCase def teardown @ext.stop_service if @ext end - + def test_01_safe1_safe4_eval assert_raise(SecurityError) do @there.method_missing(:instance_eval, 'ENV.inspect') @@ -239,7 +239,7 @@ class TestDRbEval # < Test::Unit::TestCase four = @there.four assert_equal(1, four.method_missing(:send, :eval, '1')) - + remote_class = four.remote_class assert_equal(1, remote_class.class_eval('1')) @@ -292,7 +292,7 @@ class TestDRbLarge < Test::Unit::TestCase ary = ["Hello, World"] * 102400 exception = nil begin - @there.size(ary) + @there.size(ary) rescue StandardError exception = $! end diff --git a/test/drb/ut_large.rb b/test/drb/ut_large.rb index d6717c5589..9545f78f4b 100644 --- a/test/drb/ut_large.rb +++ b/test/drb/ut_large.rb @@ -6,7 +6,7 @@ class DRbLarge include DRbUndumped def size(ary) - ary.size + ary.size end def sum(ary) diff --git a/test/drb/ut_safe1.rb b/test/drb/ut_safe1.rb index 4df8e1e5a1..97b4df24ab 100644 --- a/test/drb/ut_safe1.rb +++ b/test/drb/ut_safe1.rb @@ -8,7 +8,7 @@ if __FILE__ == $0 it end - DRb.start_service('druby://localhost:0', [1, 2, 'III', 4, "five", 6], + DRb.start_service('druby://localhost:0', [1, 2, 'III', 4, "five", 6], {:safe_level => 1}) es = DRb::ExtServ.new(ARGV.shift, ARGV.shift) DRb.thread.join diff --git a/test/drb/ut_timerholder.rb b/test/drb/ut_timerholder.rb index 141cb73302..6f66dd3393 100644 --- a/test/drb/ut_timerholder.rb +++ b/test/drb/ut_timerholder.rb @@ -34,7 +34,7 @@ class TimerHolderTest < RUNIT::TestCase assert(!holder.include?(key)) holder.delete(key) end - + def test_00 do_test(0.5) end -- cgit v1.2.3