Sha256: 20e7be5ba57dc6e5b9f0498c34e586fb081f77afad8cfdc7fdd4078b6c68d700
Contents?: true
Size: 840 Bytes
Versions: 1
Compression:
Stored size: 840 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Ols" do before :all do @browser = Browser.new(BROWSER_OPTIONS) end before :each do @browser.goto(HTML_DIR + "/non_control_elements.html") end describe "#length" do it "returns the number of ols" do @browser.ols.length.should == 2 end end describe "#[]" do it "returns the ol at the given index" do @browser.ols[1].id.should == "favorite_compounds" end end describe "#each" do it "iterates through ols correctly" do @browser.ols.each_with_index do |ul, index| ul.name.should == @browser.ol(:index, index+1).name ul.id.should == @browser.ol(:index, index+1).id ul.value.should == @browser.ol(:index, index+1).value 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/ols_spec.rb |