Sha256: 47682f0119d2e1a95d0d149d95a57ee5c469080112f69538257f1fefae25751d
Contents?: true
Size: 886 Bytes
Versions: 1
Compression:
Stored size: 886 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper.rb' describe "Hiddens" do before :all do @browser = Browser.new(BROWSER_OPTIONS) end before :each do @browser.goto(HTML_DIR + "/forms_with_input_elements.html") end describe "#length" do it "returns the number of hiddens" do @browser.hiddens.length.should == 1 end end describe "#[]" do it "returns the Hidden at the given index" do @browser.hiddens[1].id.should == "new_user_interests_dolls" end end describe "#each" do it "iterates through hiddens correctly" do @browser.hiddens.each_with_index do |h, index| h.name.should == @browser.hidden(:index, index+1).name h.id.should == @browser.hidden(:index, index+1).id h.value.should == @browser.hidden(: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/hiddens_spec.rb |