Sha256: cdbc8f2c508bf6283a0a5af79de5a227449d1f83091f0bf63bb4127cc1b936b9
Contents?: true
Size: 809 Bytes
Versions: 25
Compression:
Stored size: 809 Bytes
Contents
# encoding: utf-8 require File.expand_path("../spec_helper", __FILE__) describe "Dls" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end describe "#length" do it "returns the number of dls" do browser.dls.length.should == 3 end end describe "#[]" do it "returns the dl at the given index" do browser.dls[1].id.should == "experience-list" end end describe "#each" do it "iterates through dls correctly" do count = 0 browser.dls.each_with_index do |d, index| d.text.should == browser.dl(:index, index+1).text d.id.should == browser.dl(:index, index+1).id d.class_name.should == browser.dl(:index, index+1).class_name count += 1 end count.should > 0 end end end
Version data entries
25 entries across 25 versions & 1 rubygems