While working on #6 I discovered that File.expand_path is not faked by FakeFS. This causes problems when using paths that rely on the current working directory:
irb(main):001:0> require 'fakefs'
=> true
irb(main):002:0> Dir.glob '/*'
=> []
irb(main):003:0> Dir.pwd
=> ""
irb(main):004:0> File.expand_path 'test.txt'
=> "/Users/narnach/Projects/WesOldenbeuving/fakefs/test.txt"
irb(main):005:0> Dir.chdir '/'
=> nil
irb(main):006:0> File.expand_path 'test.txt'
=> "/Users/narnach/Projects/WesOldenbeuving/fakefs/test.txt"
irb(main):007:0>
I'm not very familiar with the internals of FakeFS::FileSystem, so it will take me a while to figure out how to make this work. I'll look into this when I have the time for it, but if someone sees an obvious way to implement it, please do :-)