spec/symbiont/web_objects/link_spec.rb in symbiont-0.1.9 vs spec/symbiont/web_objects/link_spec.rb in symbiont-0.2.0

- old
+ new

@@ -1,33 +1,33 @@ -require 'spec_helper' - -describe Symbiont::WebObjects::Link do - describe "implementation" do - let(:link_object) { double('link_object') } - let(:link) { Symbiont::WebObjects::Link } - - it "should reference standard usable selectors" do - [:class, :id, :name, :index, :xpath].each do |s| - locator = link.provide_locator_for s => 'value' - locator.keys.first.should == s - end - end - - it "should reference specific usable selectors" do - [:href, :text, :title, :css].each do |s| - locator = link.provide_locator_for s => 'value' - locator.keys.first.should == s - end - end - - it "should reference mappable selectors" do - [:link, :link_text].each do |s| - locator = link.provide_locator_for s => 'value' - locator.keys.first.should == :text - end - end - - it "should register with an anchor tag" do - ::Symbiont::WebObjects.get_class_for(:a).should == ::Symbiont::WebObjects::Link - end - end -end +require 'spec_helper' + +describe Symbiont::WebObjects::Link do + describe "implementation" do + let(:link_object) { double('link_object') } + let(:link) { Symbiont::WebObjects::Link } + + it "should reference standard usable selectors" do + [:class, :id, :name, :index, :xpath].each do |s| + locator = link.provide_locator_for s => 'value' + locator.keys.first.should == s + end + end + + it "should reference specific usable selectors" do + [:href, :text, :title, :css].each do |s| + locator = link.provide_locator_for s => 'value' + locator.keys.first.should == s + end + end + + it "should reference mappable selectors" do + [:link, :link_text].each do |s| + locator = link.provide_locator_for s => 'value' + locator.keys.first.should == :text + end + end + + it "should register with an anchor tag" do + ::Symbiont::WebObjects.get_class_for(:a).should == ::Symbiont::WebObjects::Link + end + end +end