spec/page-object/elements/image_spec.rb in page-object-0.5.4 vs spec/page-object/elements/image_spec.rb in page-object-0.5.5

- old
+ new

@@ -25,9 +25,13 @@ before(:each) do image_element.stub(:size).and_return(image_element) end + it "should register with tag_name :img" do + ::PageObject::Elements.element_class_for(:img).should == ::PageObject::Elements::Image + end + context "for watir" do it "should know the images width" do image = PageObject::Elements::Image.new(image_element, :platform => :watir_webdriver) image_element.should_receive(:width).and_return(100) image.width.should == 100