test/remote_server_test.rb in rexec-1.3.0 vs test/remote_server_test.rb in rexec-1.4.0
- old
+ new
@@ -40,11 +40,11 @@
class RemoteServerTest < Test::Unit::TestCase
def test_block_execution
code = Pathname.new(__FILE__).dirname + "./client.rb"
- RExec::start_server(code.read, COMMAND) do |conn, pid|
+ RExec::start_server(code.read, COMMAND) do |conn, task|
conn.send_object([:bounce, BOUNCE])
assert_equal BOUNCE, conn.receive_object
conn.dump_errors
@@ -54,25 +54,13 @@
end
def test_result_execution
code = Pathname.new(__FILE__).dirname + "./client.rb"
- conn, pid = RExec::start_server(code.read, COMMAND)
+ conn, task = RExec::start_server(code.read, COMMAND)
conn.send_object([:bounce, BOUNCE])
assert_equal BOUNCE, conn.receive_object
-
- conn.dump_errors
-
- conn.stop
- end
-
- def test_proxy
- code = Pathname.new(__FILE__).dirname + "./client.rb"
-
- conn, pid = RExec::start_server(code.read, COMMAND)
-
- assert_equal conn.proxy.foo, :bar
conn.dump_errors
conn.stop
end