Sha256: 369322216a476c7a3f3c920aee0c40a064126717bdaee55c99da3934e207f3d8
Contents?: true
Size: 677 Bytes
Versions: 12
Compression:
Stored size: 677 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Dts" do before :each do browser.goto(WatirSpec.files + "/definition_lists.html") end describe "#length" do it "returns the number of dts" do browser.dts.length.should == 11 end end describe "#[]" do it "returns the dt at the given index" do browser.dts[0].id.should == "experience" end end describe "#each" do it "iterates through dts correctly" do browser.dts.each_with_index do |d, index| d.id.should == browser.dt(:index, index).id d.class_name.should == browser.dt(:index, index).class_name end end end end
Version data entries
12 entries across 12 versions & 1 rubygems