Sha256: fa74fb582bb763ad2937abcbc03edd272c94ee53136838608407e5b1bee1ccb0
Contents?: true
Size: 834 Bytes
Versions: 1
Compression:
Stored size: 834 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Dts" do before :all do @browser = Browser.new(BROWSER_OPTIONS) end before :each do @browser.goto(HTML_DIR + "/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[1].id.should == "experience" end end describe "#each" do it "iterates through dts correctly" do @browser.dts.each_with_index do |d, index| d.name.should == @browser.dt(:index, index+1).name d.id.should == @browser.dt(:index, index+1).id d.class_name.should == @browser.dt(:index, index+1).class_name end end end after :all do @browser.close end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
caius-celerity-0.0.6.11 | spec/dts_spec.rb |