Sha256: b605ae02128579cb6d6b68a77de5b0910fe4282f0c827a2219300f97b6497011
Contents?: true
Size: 674 Bytes
Versions: 12
Compression:
Stored size: 674 Bytes
Contents
# encoding: utf-8 require File.dirname(__FILE__) + '/spec_helper' describe "Pres" do before :each do browser.goto(WatirSpec.files + "/non_control_elements.html") end describe "#length" do it "returns the number of pres" do browser.pres.length.should == 7 end end describe "#[]" do it "returns the pre at the given index" do browser.pres[1].id.should == "rspec" end end describe "#each" do it "iterates through pres correctly" do browser.pres.each_with_index do |p, index| p.id.should == browser.pre(:index, index).id p.value.should == browser.pre(:index, index).value end end end end
Version data entries
12 entries across 12 versions & 1 rubygems