→ FakeFS Activation

26 July 2009

Thanks to Pat Nakajima FakeFS now supports activation and deactivation.

require 'fakefs/safe'

FakeFS.activate!
# your code
FakeFS.deactivate!

# or
FakeFS do
  # your code
end

This means you can turn it on and off in your tests, if you please. Enjoy.