diff --git a/lib/fakefs/file.rb b/lib/fakefs/file.rb index 1698b3a..04e30c7 100644 --- a/lib/fakefs/file.rb +++ b/lib/fakefs/file.rb @@ -398,12 +398,12 @@ module FakeFS (@mode & mask) != 0 if @mode.is_a?(Integer) end - # Create a missing file if the path's valid. + # Create a missing file if the path is valid. # def create_missing_file raise Errno::EISDIR, "Is a directory - #{path}" if File.directory?(@path) - if !File.exists?(@path) # Unnecessary check, probably. + if !File.exists?(@path) # Unnecessary check, probably. dirname = RealFile.dirname @path unless dirname == "."