Rewrite one "out of memory" error spec to not define a subclass inside a RSpec context block. Due to some JRuby issue, that's failing in JRuby 10, so I rewrote the test so that the Bundler process really goes OOM and that class definition is not necessary.
JRuby 10, even if Ruby 3.4-compatible, has not yet adapted backtraces to include receivers, so our tests need an special case for JRuby when detecting a test method call inside backtraces.
Warbler test is upgraded to use JRuby 10. Getting it to pass needs a PR to warbler, so our test is temporarily pointing to that PR.
[rubygems/rubygems] Test JRuby 10
Necessary changes to get tests passing are:
a RSpec context block. Due to some JRuby issue, that's failing in
JRuby 10, so I rewrote the test so that the Bundler process really
goes OOM and that class definition is not necessary.
to include receivers, so our tests need an special case for JRuby when
detecting a test method call inside backtraces.
PR to warbler, so our test is temporarily pointing to that PR.
https://github.com/rubygems/rubygems/commit/edec85d4c3