FakeFS block form seems a part of base.
This commit is contained in:
parent
91de901bab
commit
9fb29f122d
@ -28,4 +28,12 @@ module FakeFS
|
||||
const_set(:FileUtils, RealFileUtils)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def FakeFS
|
||||
return ::FakeFS unless block_given?
|
||||
::FakeFS.activate!
|
||||
yield
|
||||
::FakeFS.deactivate!
|
||||
end
|
||||
|
||||
|
@ -9,9 +9,3 @@ require 'fakefs/fileutils'
|
||||
require 'fakefs/file'
|
||||
require 'fakefs/dir'
|
||||
|
||||
def FakeFS
|
||||
return ::FakeFS unless block_given?
|
||||
::FakeFS.activate!
|
||||
yield
|
||||
::FakeFS.deactivate!
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user