spec/watirspec/browser_spec.rb in watir-webdriver-0.0.9 vs spec/watirspec/browser_spec.rb in watir-webdriver-0.1.0
- old
+ new
@@ -79,17 +79,17 @@
browser.goto(WatirSpec.host + "/non_control_elements.html")
browser.url.should == WatirSpec.host + "/non_control_elements.html"
end
end
- bug "http://github.com/jarib/watirspec/issues/issue/8" [:webdriver, :ie], [:webdriver, :chrome] do
+ bug "http://github.com/jarib/watirspec/issues/issue/8", [:webdriver, :ie], [:webdriver, :chrome] do
describe ".start" do
it "goes to the given URL and return an instance of itself" do
browser = WatirSpec.implementation.browser_class.start("#{WatirSpec.files}/non_control_elements.html")
browser.should be_instance_of(WatirSpec.implementation.browser_class)
browser.title.should == "Non-control elements"
- browser.quit
+ browser.close
end
end
end
describe "#goto" do
@@ -202,19 +202,19 @@
describe "#elements_by_xpath" do
before :each do
browser.goto(WatirSpec.files + "/forms_with_input_elements.html")
end
- not_compliant_on [:webdriver, :ie] do
+ not_compliant_on [:webdriver, :ie], :celerity do
it "returns an Array of matching elements" do
objects = browser.elements_by_xpath("//*[@type='text']")
objects.should be_kind_of(Array)
objects.size.should == 5
end
end
- deviates_on [:webdriver, :ie] do
+ deviates_on [:webdriver, :ie], :celerity do
it "returns an Array of matching elements" do
objects = browser.elements_by_xpath("//*[@type='text']")
objects.should be_kind_of(Array)
objects.size.should == 6