spec/webdriver_spec.rb in watirgrid-0.0.9 vs spec/webdriver_spec.rb in watirgrid-1.0.0

- old
+ new

@@ -3,13 +3,13 @@ before(:all) do @controller = Controller.new( :ring_server_port => 12356, :loglevel => Logger::ERROR) @controller.start - 1.upto(1) do + 1.upto(1) do provider = Provider.new( - :ring_server_port => 12356, + :ring_server_port => 12356, :loglevel => Logger::ERROR, :browser_type => 'webdriver') provider.start end end @@ -20,10 +20,10 @@ it 'should take the last provider on the grid and execute some Watir code in WebDriver with Firefox' do grid = Watir::Grid.new(:ring_server_port => 12356) grid.start(:quantity => 1, :take_all => true) threads = [] grid.browsers.each do |browser| - threads << Thread.new do + threads << Thread.new do browser[:hostname].should == `hostname`.strip browser[:architecture].should == Config::CONFIG['arch'] browser[:browser_type].should == 'webdriver' b = browser[:object].new_browser(:firefox) b.goto("http://www.google.com")