Skip to content

Commit

Permalink
test: consolidate jruby version info tests
Browse files Browse the repository at this point in the history
because forking is slow and this cuts a few seconds off the test suite
  • Loading branch information
flavorjones committed Apr 6, 2021
1 parent d33b021 commit 72d96fe
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions test/test_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,9 @@ def test_version_info_basics
assert_equal(::Gem::Platform.local.to_s, Nokogiri::VERSION_INFO["ruby"]["gem_platform"])
end

def test_version_info_for_xerces
skip_unless_jruby("xerces is only used for JRuby")
def test_version_info_for_xerces_and_nekohtml
skip_unless_jruby("xerces/nekohtml is only used for JRuby")
assert_equal(Nokogiri::XERCES_VERSION, version_info["other_libraries"]["xerces"])
end

def test_version_info_for_nekohtml
skip_unless_jruby("nekohtml is only used for JRuby")
assert_equal(Nokogiri::NEKO_VERSION, version_info["other_libraries"]["nekohtml"])
end

Expand Down

0 comments on commit 72d96fe

Please sign in to comment.