JRuby exposes more parts of File as public instance methods than MRI does.
These two are made public in JRuby:
Assumptions in FakeFS about that makes its asserts not pass. Update: FakeFS v0.10.0 changed it assumptions.
Other relevant info you may wish to add:
File.instance_methods should exclude ttymode and ttymode_yield.
The test results in https://travis-ci.org/fakefs/fakefs/jobs/174750880 should not fail on ttymode_yield and ttymode
Spec: exclude a few public methods on File for JRuby
- see jruby/jruby#4275
make ttymode and ttymode_yield helpers private
to have 'better' MRI compatibility (resolves #4275)
Thank you, @kares!