Sha256: fb9c5aa3de30e50463d9e2ad9ae469aa1717b9d1d25d66c2b6bff092770e93ec
Contents?: true
Size: 827 Bytes
Versions: 1
Compression:
Stored size: 827 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Areas" do before :all do @browser = Browser.new(BROWSER_OPTIONS) end before :each do @browser.goto(HTML_DIR + "/images.html") end describe "#length" do it "returns the number of areas" do @browser.areas.length.should == 3 end end describe "#[]" do it "returns the area at the given index" do @browser.areas[1].id.should == "NCE" end end describe "#each" do it "iterates through areas correctly" do @browser.areas.each_with_index do |a, index| a.name.should == @browser.area(:index, index+1).name a.id.should == @browser.area(:index, index+1).id a.value.should == @browser.area(: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/areas_spec.rb |