Module: FakeFS::SpecHelpers

Includes:
FakeFS
Defined in:
lib/fakefs/spec_helpers.rb

Overview

Module SpecHelpers

Defined Under Namespace

Modules: All

Class Method Summary collapse

Methods included from FakeFS

activate!, activated?, clear!, deactivate!, #use_fakefs, with, with_fresh, without

Class Method Details

.extended(example_group) ⇒ Object



51
52
53
# File 'lib/fakefs/spec_helpers.rb', line 51

def self.extended(example_group)
  example_group.use_fakefs(example_group, with: :each)
end

.included(example_group) ⇒ Object



55
56
57
# File 'lib/fakefs/spec_helpers.rb', line 55

def self.included(example_group)
  example_group.extend self
end