Sha256: d61267e422da945095068c128e2129322520f34124e627877693697385a56509

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

module FakeFS
  module FileTest
    extend self

    def exist?(file_name)
      File.exist?(file_name)
    end

    def directory?(file_name)
      File.directory?(file_name)
    end

    def file?(file_name)
      File.file?(file_name)
    end

    def writable?(file_name)
      File.writable?(file_name)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fakefs-0.5.4 lib/fakefs/file_test.rb
fakefs-0.5.3 lib/fakefs/file_test.rb
fakefs-0.5.2 lib/fakefs/file_test.rb
fakefs-0.5.1 lib/fakefs/file_test.rb
fakefs-0.5.0 lib/fakefs/file_test.rb