Yesterday I noticed an inconsistent behavior related to Strings using GitHub Actions and jruby-head.
Today I was able to obtain the following minimal reproducible example using Linux and RVM:
s = '!test'
s.delete_prefix!('!')
p s
s.tr!('-','_')
p s
The expected behavior is to output "test" twice.
Output of MRI 3.4.1:
Output of JRuby head (CI environment) and JRuby 9.4.10.0 (RVM locally):