spec/watirgrid_spec.rb in watirgrid-0.0.7 vs spec/watirgrid_spec.rb in watirgrid-0.0.8.pre

- old
+ new

@@ -1,51 +1,51 @@ -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 - +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 +