@headius @enebo @atambo Fixing binwrites specs. And as the hasOffset flag was removed and the mode calculation was done inline on the binwrite method I felt the necessity to parse mode in a string format to an int oflag. I've found a deprecated method that does this conversion, I know it is not the perfect world if you can give me feedback on other method that does the same thing.
EncodingUtils has a method that kind of does the same thing, but it depends on a file instance which I don't have.
(the deprecated method is ModeFlags. getOFlagsFromString)
In test/externals/ruby1.9/excludes/TestIO.rb there is an exclude for test_s_binwrite you should try removing that exclude and run ./bin/jruby test/externals/ruby1.9/ruby/test_io.rb -n test_s_binwrite to see if it passes now.
./bin/jruby test/externals/ruby1.9/ruby/test_io.rb -n test_s_binwrite
Also if you are looking for a non-deprecated method I think OpenFile.getFModeFromString(mode) would work for you.
@atambo: great tips, thanks! learned some new things about tagged testing and way of running mri tests, till now I was only worrying about rubyspecs.
Fixing IO.binwrite specs, parsing options.
@atambo has a code to fix this.