Add pending spec for bug. Webrat needs to escape quotes in XPath

This commit is contained in:
Bryan Helmkamp 2008-11-26 08:32:22 -05:00
parent f7addd1d38
commit aecd70dd15
1 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,18 @@
require File.expand_path(File.dirname(__FILE__) + "/../../spec_helper")
describe "field_by_xpath" do
it "should work when there is a single quote in the ID" do
pending "needs bug fix" 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
end