Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
IO#reopen will be able to decide an access mode even if it was not pa…
…ssed. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions File.delete("/tmp/foo") if File.exists?("/tmp/foo") File.delete("/tmp/bar") if File.exists?("/tmp/bar") f = File.open("/tmp/foo", "w") f.reopen("/tmp/bar") f.puts "hello, world" f.close File.open("/tmp/bar") {|f| assert_equal("hello, world\n", f.gets) } puts :ok }}}
- Loading branch information