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:
parent
e3446636e5
commit
0b7d45b985
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user