Sha256: 5ffadade66d0e3a841b53260e53b07ef2cbbd2f1c396002cdb8180d8effa0142

Contents?: true

Size: 384 Bytes

Versions: 1

Compression:

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

1 entries across 1 versions & 1 rubygems

Version Path
mkuklis-webrat-0.6.rc1 spec/public/locators/field_with_id_spec.rb