Sha256: 571affb906bb3fed13319f0c713183ca0981ae631f65790461f0029f12700233
Contents?: true
Size: 836 Bytes
Versions: 1
Compression:
Stored size: 836 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Dds" 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 dds" do @browser.dds.length.should == 11 end end describe "#[]" do it "returns the dd at the given index" do @browser.dds[2].title.should == "education" end end describe "#each" do it "iterates through dds correctly" do @browser.dds.each_with_index do |d, index| d.name.should == @browser.dd(:index, index+1).name d.id.should == @browser.dd(:index, index+1).id d.class_name.should == @browser.dd(: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/dds_spec.rb |