If run this with ruby test.rb
with MRI, Jruby, and in MRI irb: true
If run in Jruby irb: false
I think it can be related in following failing rails tests, but I'm not sure:
3) Error:
AttrInternalTest#test_naming_format:
NoMethodError: private method `foo=' called for #<#<Class:0x64ea9235>:0x6af12899>