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
-----
require 'fakefs'
require 'fakefs'
# That's it.
# That's it.
Don't Fake the FS Immediately
-----------------------------
require 'fakefs/safe'
require 'fakefs/safe'
FakeFS.activate!
# your code
FakeFS.deactive!
# or
FakeFS do
FakeFS.activate!
# your code
end
FakeFS.deactive!
# or
FakeFS do
# your code
end
How is this different than MockFS?