Sha256: 15a933ca94c26a33635c3f527765ad01a02b34c8149fbe697e4efea24d261c98

Contents?: true

Size: 368 Bytes

Versions: 60

Compression:

Stored size: 368 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")


describe "field_with_id" do
  it "should work when there is a single quote in the ID" do
    with_html <<-HTML
      <html>
        <form>
        <input type="text" id="user's name">
        </form>
      </html>
    HTML

    field_with_id("user's name").id.should == "user's name"
  end
end

Version data entries

60 entries across 60 versions & 23 rubygems

Version Path
davidtrogers-webrat-0.4.4.2 spec/public/locators/field_with_id_spec.rb
diabolo-webrat-0.4.4.1 spec/public/locators/field_with_id_spec.rb
diabolo-webrat-0.4.4.2 spec/public/locators/field_with_id_spec.rb
diabolo-webrat-0.4.4 spec/public/locators/field_with_id_spec.rb
diabolo-webrat-0.5.1 spec/public/locators/field_with_id_spec.rb
dstrelau-webrat-0.5.1 spec/public/locators/field_with_id_spec.rb
emipair-webrat-0.0.1 spec/public/locators/field_with_id_spec.rb
hardbap-webrat-0.5.1 spec/public/locators/field_with_id_spec.rb
hardbap-webrat-0.5.2 spec/public/locators/field_with_id_spec.rb
raldred-webrat-0.4.4.2 spec/public/locators/field_with_id_spec.rb
sr-webrat-0.4.4.1 spec/public/locators/field_with_id_spec.rb
winton-sum-0.1.0 vendor/webrat/spec/public/locators/field_with_id_spec.rb
winton-sum-0.1.1 vendor/webrat/spec/public/locators/field_with_id_spec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/webrat-0.7.3/spec/public/locators/field_with_id_spec.rb
indirect-webrat-0.7.5 spec/public/locators/field_with_id_spec.rb
indirect-webrat-0.7.4 spec/public/locators/field_with_id_spec.rb
webrat-0.7.3 spec/public/locators/field_with_id_spec.rb
jbd-webrat-0.7.2.rails3 spec/public/locators/field_with_id_spec.rb
webrat-0.7.2 spec/public/locators/field_with_id_spec.rb
webrat-0.7.2.beta.2 spec/public/locators/field_with_id_spec.rb