FakeFS block form seems a part of base.
This commit is contained in:
parent
91de901bab
commit
9fb29f122d
@ -29,3 +29,11 @@ module FakeFS
|
|||||||
end
|
end
|
||||||
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/file'
|
||||||
require 'fakefs/dir'
|
require 'fakefs/dir'
|
||||||
|
|
||||||
def FakeFS
|
|
||||||
return ::FakeFS unless block_given?
|
|
||||||
::FakeFS.activate!
|
|
||||||
yield
|
|
||||||
::FakeFS.deactivate!
|
|
||||||
end
|
|
||||||
|
Loading…
Reference in New Issue
Block a user