Skip to content

Commit

Permalink
Update docs for proper usage of FakeFS::SpecHelpers
Browse files Browse the repository at this point in the history
  • Loading branch information
smtlaissezfaire committed Nov 24, 2009
1 parent a35f3b1 commit ceffec3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions README.markdown
Expand Up @@ -50,9 +50,16 @@ Don't Fake the FS Immediately

RSpec
-----------------------------
The above approach works with RSpec as well. In addition to this you may use the
'use_fakefs' macro to turn FakeFS on and off in a given example group. See
lib/fakefs/spec_helpers.rb for more details on it's usage.
The above approach works with RSpec as well. In addition you may include
FakeFS::SpecHelpers to turn FakeFS on and off in a given example group:

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?
Expand Down

0 comments on commit ceffec3

Please sign in to comment.