Sha256: d248831851585d63b3137ed6ef47f83c332bd591d2cd657503d79c3d49cfe8dc

Contents?: true

Size: 288 Bytes

Versions: 13

Compression:

Stored size: 288 Bytes

Contents

#
# Wrapper for Ruby's file services, replaced during testing
# so we can run tests without touching a real filesystem.
#

class FileService

  def open(*args)
    super(*args)
  end

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

  def dir_entries(name)
    Dir.entries(name)
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
madeleine-0.9.0 lib/madeleine/files.rb
madeleine-0.9.0.pre lib/madeleine/files.rb
madeleine-0.8.0 lib/madeleine/files.rb
madeleine-0.8.0.pre lib/madeleine/files.rb
Pimki-1.4.092 libraries/madeleine/files.rb
Pimki-1.5.092 libraries/madeleine/files.rb
Pimki-1.6.092 libraries/madeleine/files.rb
Pimki-1.7.092 libraries/madeleine/files.rb
Pimki-1.8.092 libraries/madeleine/files.rb
Pimki-1.8.200 libraries/madeleine/files.rb
madeleine-0.7.1 lib/madeleine/files.rb
madeleine-0.7.3 lib/madeleine/files.rb
madeleine-0.7.2 lib/madeleine/files.rb