Fix test/verify.rb to report the correct missing methods

This commit is contained in:
Scott Taylor 2009-12-04 04:54:09 -05:00
parent f68cad18a0
commit 522976f09c

View File

@ -7,6 +7,14 @@
require "test_helper"
class FakeFSVerifierTest < Test::Unit::TestCase
def setup
FakeFS.activate!
end
def teardown
FakeFS.deactivate!
end
(RealFile.methods - Class.new.methods).each do |name|
define_method("test #{name} class method") do
assert File.respond_to?(name), "File.#{name} not implemented"