note that fakefs uses pathname and fileutils. closes #12
This commit is contained in:
parent
e5d7b716ed
commit
11e80d2ec3
@ -47,6 +47,7 @@ Don't Fake the FS Immediately
|
|||||||
# your code
|
# your code
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
RSpec
|
RSpec
|
||||||
-----------------------------
|
-----------------------------
|
||||||
The above approach works with RSpec as well. In addition to this you may use the
|
The above approach works with RSpec as well. In addition to this you may use the
|
||||||
@ -62,6 +63,14 @@ test-time dependency: your actual library does not need to use or know about
|
|||||||
FakeFS.
|
FakeFS.
|
||||||
|
|
||||||
|
|
||||||
|
Caveats
|
||||||
|
-------
|
||||||
|
|
||||||
|
FakeFS internally uses the `Pathname` and `FileUtils` constants. If you use
|
||||||
|
these in your app, be certain you're properly requiring them and not counting
|
||||||
|
on FakeFS' own require.
|
||||||
|
|
||||||
|
|
||||||
Speed?
|
Speed?
|
||||||
------
|
------
|
||||||
<http://gist.github.com/156091>
|
<http://gist.github.com/156091>
|
||||||
|
Loading…
Reference in New Issue
Block a user