RealFileUtils makes calls to ::File && ::Dir - so we need to deactivate FakeFS if we intend RealFileUtils to use the RealFile and RealDir class. Closes #24
This commit is contained in:
parent
8355d15ec2
commit
7f601eb7fc
@ -788,7 +788,9 @@ class FakeFSTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_clone_clones_directories
|
def test_clone_clones_directories
|
||||||
|
FakeFS.deactivate!
|
||||||
RealFileUtils.mkdir_p(here('subdir'))
|
RealFileUtils.mkdir_p(here('subdir'))
|
||||||
|
FakeFS.activate!
|
||||||
|
|
||||||
FileSystem.clone(here('subdir'))
|
FileSystem.clone(here('subdir'))
|
||||||
|
|
||||||
@ -799,7 +801,10 @@ class FakeFSTest < Test::Unit::TestCase
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_clone_clones_dot_files_even_hard_to_find_ones
|
def test_clone_clones_dot_files_even_hard_to_find_ones
|
||||||
|
FakeFS.deactivate!
|
||||||
RealFileUtils.mkdir_p(here('subdir/.bar/baz/.quux/foo'))
|
RealFileUtils.mkdir_p(here('subdir/.bar/baz/.quux/foo'))
|
||||||
|
FakeFS.activate!
|
||||||
|
|
||||||
assert !File.exists?(here('subdir'))
|
assert !File.exists?(here('subdir'))
|
||||||
|
|
||||||
FileSystem.clone(here('subdir'))
|
FileSystem.clone(here('subdir'))
|
||||||
|
Loading…
Reference in New Issue
Block a user