spec/browser_spec.rb in taza-0.9.1.1 vs spec/browser_spec.rb in taza-0.9.1.2

- old
+ new

@@ -30,9 +30,14 @@ it "should use params browser type when creating an watir webdriver instance" do Watir::Browser.expects(:new).with(:firefox) browser = Taza::Browser.create(:browser => :firefox, :driver => :watir_webdriver) end + it 'should use params browser type when creating a selenium webdriver instance' do + Selenium::WebDriver.expects(:for).with(:firefox) + browser = Taza::Browser.create(:browser => :firefox, :driver => :selenium_webdriver) + end + it "should be able to create a selenium instance" do browser = Taza::Browser.create(:browser => :firefox, :driver => :selenium) browser.should be_a_kind_of(Selenium::SeleniumDriver) end