From: Francis Hwang Date: 2005-09-22T23:21:39+09:00 Subject: Re: MockFS 0.1.2 Shashank Date wrote: > Ok, I figured it out. It requires extensions/all > > http://www.rubyforge.org/projects/extensions > > A reference to this fact in the announcement would be nice. > (Or did I miss it somehow ;-)) Sorry about that. I put the dependency in the README and in the gem, but not in the announcement. I'll remember that for future reference. > Anyway, I was able to run the following snippet without any error: > > require 'mockfs' > MockFS.file_utils.mv( "C:\\temp\\junk.txt", "C:\\atest\\bunk.txt" ) > > But the tests that came with it failed miserably. I think I put this disclaimer in earlier announcements, but not this one: I have no idea how well MockFS works for Windows, since I never use Windows. Shashank, I'd really love it if you could try it out for Windows and send me bug reports. As for the tests, I'd guess that about 50% of them will fail--because some of those tests run directly against the real filesystem, and they assume that filesystem is a *nix FS. Each unit test in the current release runs exactly twice, actually, once against the real FS and once against the mock FS. (I actually wrote the bulk of the tests in a module, then included it twice in different test cases that specify whether to use the real or mock FS.) Anyway, if you want to just send me the output of your test run, I can work on cleaning that up for Windows. Yeah, MockFS is still pretty beta. f.