From 522976f09cde65bbb827eda90bf807e5a4dbee94 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Fri, 4 Dec 2009 04:54:09 -0500 Subject: [PATCH] Fix test/verify.rb to report the correct missing methods --- test/verify.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/verify.rb b/test/verify.rb index 9f7f0e6..46c2f67 100644 --- a/test/verify.rb +++ b/test/verify.rb @@ -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"