From 3fb482132bdf075a5cb67f1de87f64520faf30f1 Mon Sep 17 00:00:00 2001 From: pavel Date: Sun, 15 Jul 2018 12:17:43 +0200 Subject: test_should_impose_childless_html_tags_in_html failure with JRuby --- actionpack/test/controller/test_case_test.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'actionpack') diff --git a/actionpack/test/controller/test_case_test.rb b/actionpack/test/controller/test_case_test.rb index 2d0b6cd602..dda2686a9b 100644 --- a/actionpack/test/controller/test_case_test.rb +++ b/actionpack/test/controller/test_case_test.rb @@ -401,7 +401,13 @@ XML process :test_xml_output, params: { response_as: "text/html" } # auto-closes, so the

becomes a sibling - assert_select "root > area + p" + if defined?(JRUBY_VERSION) + # https://github.com/sparklemotion/nokogiri/issues/1653 + # HTML parser "fixes" "broken" markup in slightly different ways + assert_select "root > map > area + p" + else + assert_select "root > area + p" + end end def test_should_not_impose_childless_html_tags_in_xml -- cgit v1.2.3