Sha256: 8224b04eddb99106ad8dcb6f9e0a173d2681db9644263645f79befca9392d437
Contents?: true
Size: 722 Bytes
Versions: 12
Compression:
Stored size: 722 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Maps" do before :each do browser.goto(WatirSpec.files + "/images.html") end describe "#length" do it "returns the number of maps" do browser.maps.length.should == 2 end end describe "#[]" do it "returns the p at the given index" do browser.maps[0].id.should == "triangle_map" end end describe "#each" do it "iterates through maps correctly" do browser.maps.each_with_index do |m, index| m.name.should == browser.map(:index, index).name m.id.should == browser.map(:index, index).id m.value.should == browser.map(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems