Update docs for proper usage of FakeFS::SpecHelpers
This commit is contained in:
parent
a35f3b12b2
commit
ceffec3023
@ -50,9 +50,16 @@ Don't Fake the FS Immediately
|
|||||||
|
|
||||||
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 you may include
|
||||||
'use_fakefs' macro to turn FakeFS on and off in a given example group. See
|
FakeFS::SpecHelpers to turn FakeFS on and off in a given example group:
|
||||||
lib/fakefs/spec_helpers.rb for more details on it's usage.
|
|
||||||
|
require 'fakefs/spec_helpers'
|
||||||
|
|
||||||
|
describe "my spec" do
|
||||||
|
include FakeFS::SpecHelpers
|
||||||
|
end
|
||||||
|
|
||||||
|
See lib/fakefs/spec_helpers.rb for more info.
|
||||||
|
|
||||||
|
|
||||||
How is this different than MockFS?
|
How is this different than MockFS?
|
||||||
|
Loading…
Reference in New Issue
Block a user