Don't attempt to create a missing file in File.write (the mode guarantees that the file will already be present)

This commit is contained in:
Scott Taylor 2009-09-30 03:22:28 -04:00
parent e3446636e5
commit 0b7d45b985

View File

@ -134,7 +134,6 @@ module FakeFS
raise IOError, 'closed stream' unless @open
raise IOError, 'not open for writing' if read_only?
create_missing_file
@file.content += content
end
alias_method :print, :write