Sha256: ef285756ea2b827888de655aa626a0f2eab30242e1c9cb5ef1e0a53328aa776a
Contents?: true
Size: 1.3 KB
Versions: 7
Compression:
Stored size: 1.3 KB
Contents
require File.expand_path(File.dirname(__FILE__) + '/spec_helper') describe Controller do it 'should start a DRb and Ring Server when specifying NO interface or port' do controller = Controller.new controller.start controller.drb_server_uri.should =~ /druby/ controller.stop end it 'should start a DRb and Ring Server on a specified interface' do controller = Controller.new( :drb_server_host => '127.0.0.1', :ring_server_host => '127.0.0.1') controller.start controller.drb_server_uri.should =~ /druby/ controller.stop end it 'should start a DRb and Ring Server on specified ports' do controller = Controller.new( :drb_server_port => 11235, :ring_server_port => 12358) controller.start controller.drb_server_uri.should =~ /druby/ controller.stop end end describe Provider do before(:all) do @controller = Controller.new( :drb_server_host => '127.0.0.1', :ring_server_host => '127.0.0.1', :ring_server_port => 12350) @controller.start end it 'should register a new provider on a specified port' do provider = Provider.new( :drb_server_host => '127.0.0.1', :ring_server_host => '127.0.0.1', :ring_server_port => 12350) provider.start end after(:all) do @controller.stop end end
Version data entries
7 entries across 7 versions & 1 rubygems