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