summaryrefslogtreecommitdiff
path: root/test/drb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-06 03:56:38 +0000
commit287a34ae0dfc23e4158f67cb7783d239f202c368 (patch)
tree5e35d5b41aae961b37cf6632f60c42f51c7aa775 /test/drb
parent9b52ae2e6491bb5d6c59e1799449f6268baf6f89 (diff)
* {ext,lib,test}/**/*.rb: removed trailing spaces.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb')
-rw-r--r--test/drb/drbtest.rb2
-rw-r--r--test/drb/test_acl.rb2
-rw-r--r--test/drb/test_drb.rb18
-rw-r--r--test/drb/ut_large.rb2
-rw-r--r--test/drb/ut_safe1.rb2
-rw-r--r--test/drb/ut_timerholder.rb2
6 files changed, 14 insertions, 14 deletions
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index e06139a9d6c..e1d3aeedf21 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 d8955e0e75e..7fe30f4c4ac 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 57cf7175d73..0548dc7aa01 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 d6717c5589d..9545f78f4b4 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 4df8e1e5a12..97b4df24aba 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 141cb73302c..6f66dd3393b 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