code blocks in readme

This commit is contained in:
Chris Wanstrath 2009-07-26 23:58:46 -07:00
parent 42dc10c505
commit 5e1d34e929

View File

@ -28,24 +28,24 @@ Woot.
Usage Usage
----- -----
require 'fakefs' require 'fakefs'
# That's it. # That's it.
Don't Fake the FS Immediately Don't Fake the FS Immediately
----------------------------- -----------------------------
require 'fakefs/safe' require 'fakefs/safe'
FakeFS.activate! FakeFS.activate!
# your code # your code
FakeFS.deactive! FakeFS.deactive!
# or # or
FakeFS do FakeFS do
# your code # your code
end end
How is this different than MockFS? How is this different than MockFS?