Skip to content

Instantly share code, notes, and snippets.

@brynary
Created November 19, 2008 23:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save brynary/26833 to your computer and use it in GitHub Desktop.
Save brynary/26833 to your computer and use it in GitHub Desktop.
it "should work with non-HTML documents" do
xml = '<foo bar="baz"></foo>'
xml.should have_xpath('/foo[bar="baz"]')
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment