aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorpavel <pavel.rosicky@easy.cz>2018-07-15 12:17:43 +0200
committerpavel <pavel.rosicky@easy.cz>2018-07-15 12:17:43 +0200
commit3fb482132bdf075a5cb67f1de87f64520faf30f1 (patch)
tree768bab7d6efcef7c6d0852b3c7cea240e7e2be21 /actionpack/test
parent05bef140519fe3410fd8d352f5ea84fd1a278063 (diff)
downloadrails-3fb482132bdf075a5cb67f1de87f64520faf30f1.tar.gz
rails-3fb482132bdf075a5cb67f1de87f64520faf30f1.tar.bz2
rails-3fb482132bdf075a5cb67f1de87f64520faf30f1.zip
test_should_impose_childless_html_tags_in_html failure with JRuby
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/test_case_test.rb8
1 files changed, 7 insertions, 1 deletions
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" }
# <area> auto-closes, so the <p> 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