Methods
- E
- I
- U
Class Public methods
Source: show
# File lib/fakefs/spec_helpers.rb, line 27 def self.extended(example_group) example_group.use_fakefs(example_group) end
Source: show
# File lib/fakefs/spec_helpers.rb, line 31 def self.included(example_group) example_group.extend self end
Instance Public methods
Source: show
# 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