Source: show | on GitHub
# File lib/fakefs/spec_helpers.rb, line 27 def self.extended(example_group) example_group.use_fakefs(example_group) end
# File lib/fakefs/spec_helpers.rb, line 31 def self.included(example_group) example_group.extend self end
# File lib/fakefs/spec_helpers.rb, line 35 def use_fakefs(describe_block) describe_block.before :each do FakeFS.activate! end describe_block.after :each do FakeFS.deactivate! FakeFS::FileSystem.clear end end