Skip to content

Commit

Permalink
Merge pull request #622 from sparklemotion/613-more-changes
Browse files Browse the repository at this point in the history
test: work around libxml2 encoding changes
  • Loading branch information
flavorjones committed Aug 11, 2023
2 parents 74574f9 + 0ba09f4 commit 4c82b11
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_mechanize_page_link.rb
Expand Up @@ -114,7 +114,7 @@ def test_encoding_charset_after_title_bad
skip_if_nkf_dependency

# https://gitlab.gnome.org/GNOME/libxml2/-/issues/543
skip if Nokogiri.uses_libxml?([">= 2.11.0", "<= 2.11.4"])
skip if Nokogiri.uses_libxml?([">= 2.11.0", "< 2.12.0"])
expected_encoding = Nokogiri.uses_libxml?("< 2.11.0") ? 'UTF-8' : 'Shift_JIS'

page = util_page UTF8
Expand All @@ -138,7 +138,7 @@ def test_encoding_charset_bad
skip_if_nkf_dependency

# https://gitlab.gnome.org/GNOME/libxml2/-/issues/543
skip if Nokogiri.uses_libxml?([">= 2.11.0", "<= 2.11.4"])
skip if Nokogiri.uses_libxml?([">= 2.11.0", "< 2.12.0"])
expected_encoding = Nokogiri.uses_libxml?("< 2.11.0") ? 'UTF-8' : 'Shift_JIS'

page = util_page "<title>#{UTF8_TITLE}</title>"
Expand Down

0 comments on commit 4c82b11

Please sign in to comment.