Add pending spec for XML bug

This commit is contained in:
Bryan Helmkamp 2008-11-20 16:15:05 -05:00
parent 9b5ffacecc
commit bb5eac701d
1 changed files with 5 additions and 0 deletions

View File

@ -17,6 +17,11 @@ describe Webrat::Matchers do
end end
describe "#have_xpath" do describe "#have_xpath" do
it "should work with non-HTML documents" do
pending "Bugfix"
xml = '<foo bar="baz"></foo>'
xml.should have_xpath('/foo[@bar="baz"]')
end
it "should be able to match an XPATH" do it "should be able to match an XPATH" do
@body.should have_xpath("//div") @body.should have_xpath("//div")