Sha256: 1b4a063c28673763999958abf006fabb5f65c1252730651ed2ce5379fbd28574
Contents?: true
Size: 679 Bytes
Versions: 12
Compression:
Stored size: 679 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Images" do before :each do browser.goto(WatirSpec.files + "/images.html") end describe "#length" do it "returns the number of images" do browser.images.length.should == 9 end end describe "#[]" do it "returns the image at the given index" do browser.images[5].id.should == "square" end end describe "#each" do it "iterates through images correctly" do browser.images.each_with_index do |c, index| c.id.should == browser.image(:index, index).id c.value.should == browser.image(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems