Skip to content
Browse files

Update docs for proper usage of FakeFS::SpecHelpers

  • Loading branch information...
1 parent a35f3b1 commit ceffec3023a2c790cd567275168ed6d6e5bf4ba9 @smtlaissezfaire smtlaissezfaire committed Nov 23, 2009
Showing with 10 additions and 3 deletions.
  1. +10 −3 README.markdown
View
13 README.markdown
@@ -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?

0 comments on commit ceffec3

Please sign in to comment.
Something went wrong with that request. Please try again.