spec/watirspec/links_spec.rb in watir-webdriver-0.0.9 vs spec/watirspec/links_spec.rb in watir-webdriver-0.1.0
- old
+ new
@@ -5,9 +5,17 @@
before :each do
browser.goto(WatirSpec.files + "/non_control_elements.html")
end
+ bug "http://github.com/jarib/celerity/issues#issue/25", :celerity do
+ describe "with selectors" do
+ it "returns the matching elements" do
+ browser.links(:title => "link_title_2").to_a.should == [browser.link(:title => "link_title_2")]
+ end
+ end
+ end
+
describe "#length" do
it "returns the number of links" do
browser.links.length.should == 4
end
end