Skip to content

Commit 8baa9d5

Browse files
committed
Dont set @html_document to not collide with ActionDispatch
ActionDispatch Assertions define this var, and it will memoaize it https://github.com/rails/rails/blob/master/actionpack/lib/action_dispatch/testing/assertions.rb#L15 Thus, we cannot define the same, otherwise they will collide.
1 parent 8798b93 commit 8baa9d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rails/dom/testing/assertions/tag_assertions.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def _find_tag(conditions)
146146

147147
def html_scanner_document
148148
xml = @response.content_type =~ /xml$/
149-
@html_document ||= HTML::Document.new(@response.body, false, xml)
149+
@html_scanner_document ||= HTML::Document.new(@response.body, false, xml)
150150
end
151151
end
152152
end

0 commit comments

Comments
 (0)