webrat/spec/public/locators/field_with_id_spec.rb
Bryan Helmkamp 03914fd293 Whitespace
2009-04-07 20:30:12 -04:00

17 lines
368 B
Ruby

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