Sha256: 13617db9631f661094a0522f168e5b7b038d9ad235056dce793b58d98cefd653
Contents?: true
Size: 853 Bytes
Versions: 1
Compression:
Stored size: 853 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Strongs" 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 divs" do @browser.strongs.length.should == 2 end end describe "#[]" do it "returns the div at the given index" do @browser.strongs[1].id.should == "descartes" end end describe "#each" do it "iterates through divs correctly" do @browser.strongs.each_with_index do |s, index| strong = @browser.strong(:index, index+1) s.name.should == strong.name s.id.should == strong.id s.class_name.should == strong.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/strongs_spec.rb |