Sha256: 86777f0b99c7da915eb4f30780482bb9563cfde33fb58a406a2eef0e0dacb54f

Contents?: true

Size: 814 Bytes

Versions: 41

Compression:

Stored size: 814 Bytes

Contents

# Figure out what's missing from fakefs
#
# USAGE
#
#   $ ruby test/verify.rb | grep "not implemented"
require 'fakefs'
require 'test/unit'
 
class FakeFSVerifierTest < Test::Unit::TestCase
  (RealFile.methods - Class.new.methods).each do |name|
    define_method("test #{name} class method") do
      assert File.respond_to?(name), "File.#{name} not implemented"
    end
  end
 
  (RealFile.instance_methods - Enumerable.instance_methods).each do |name|
    define_method("test #{name} instance method") do
      assert File.instance_methods.include?(name), "File##{name} not implemented"
    end
  end
 
  (RealFileUtils.methods - Class.new.methods).each do |name|
    define_method("test #{name} module method") do
      assert FileUtils.respond_to?(name), "FileUtils.#{name} not implemented"
    end
  end
end

Version data entries

41 entries across 41 versions & 7 rubygems

Version Path
Sutto-perennial-0.1.0 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.0 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.1 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.2.1 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.2.2 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.2.3 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.2 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.0 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.1 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.2 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.3 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.4 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.5 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.6 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.3.7 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.4.0 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.4.1 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.4.5 vendor/fakefs/test/verify.rb
Sutto-perennial-0.2.4.6 vendor/fakefs/test/verify.rb
Sutto-perennial-1.0.0.0 vendor/fakefs/test/verify.rb