From ceffec3023a2c790cd567275168ed6d6e5bf4ba9 Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Mon, 23 Nov 2009 23:34:59 -0500 Subject: [PATCH] Update docs for proper usage of FakeFS::SpecHelpers --- README.markdown | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index 51679adc..4fa00cfd 100644 --- a/README.markdown +++ b/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?