Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assert_select xmlns example does not work #51

Open
dnrce opened this issue May 22, 2016 · 0 comments
Open

assert_select xmlns example does not work #51

dnrce opened this issue May 22, 2016 · 0 comments

Comments

@dnrce
Copy link
Contributor

dnrce commented May 22, 2016

The example assert_select "feed[xmlns='http://www.w3.org/2005/Atom']" fails against matching XML content. It succeeds when the same body is returned with a text/html content-type.

Gist to reproduce the issue: https://gist.github.com/dnrce/1ce455ef4c3fbfff8fca43dea13da148

This example usage is documented at

# assert_select "feed[xmlns='http://www.w3.org/2005/Atom']" do
.

This means the suggested test pattern doesn't work against content generated by AtomFeedHelper: http://api.rubyonrails.org/classes/ActionView/Helpers/AtomFeedHelper.html

dnrce added a commit to dnrce/tracks that referenced this issue May 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant