Sha256: 04f22fc4d9e7ca34b630250387ef4ac6a80670c9a0644c116ac60a4f9457f482

Contents?: true

Size: 370 Bytes

Versions: 15

Compression:

Stored size: 370 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

15 entries across 15 versions & 2 rubygems

Version Path
adva-0.3.2 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.3.1 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.3.0 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.2.4 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.2.3 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.2.2 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.2.1 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.2.0 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.1.4 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.1.3 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.1.2 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.1.1 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.1.0 test/webrat/spec/public/locators/field_with_id_spec.rb
adva-0.0.1 test/webrat/spec/public/locators/field_with_id_spec.rb
integrity-0.1.9 vendor/webrat/spec/public/locators/field_with_id_spec.rb