… ::File, not FakeFS::File)
The previous implementation of Pathname#each_line (see #220) wrapped both kinds of invocation (block and block-less) in a File.open closure, the latter resulting in an Enumerator that attempts to operate on a prematurely closed IO object (resulting in an IOError upon actual iteration). This fix properly implements the block-less invocation with a recursing enumerator. An additional assertion was added to the Pathname unit tests to cover the case. Existing uses of assert_equal were also corrected to use the right "expected" and "actual" argument position. [ Closes #283 ]
Previous fake File.write did not accept the valid fourth argument `open_args`. This commit should provide a such possibility. I do not certify correct behavior for all cases, but at least it won’t raise a useless exception and will extends the fakers compatibility
I did an unscientific check of a bunch of files on my (OS X 10.8) system and found no sticky files.
* PierreRambaud/master: Add sticky? method for File::Stat Conflicts: test/file/stat_test.rb test/kernel_test.rb