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
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 atext/htmlcontent-type.Gist to reproduce the issue: https://gist.github.com/dnrce/1ce455ef4c3fbfff8fca43dea13da148
This example usage is documented at
rails-dom-testing/lib/rails/dom/testing/assertions/selector_assertions.rb
Line 196 in f94ac0a
This means the suggested test pattern doesn't work against content generated by AtomFeedHelper: http://api.rubyonrails.org/classes/ActionView/Helpers/AtomFeedHelper.html