code blocks in readme
This commit is contained in:
parent
42dc10c505
commit
5e1d34e929
@ -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?
|
||||||
|
Loading…
Reference in New Issue
Block a user