diff --git a/lib/fakefs/safe.rb b/lib/fakefs/safe.rb index 3df0e50..9dd7ce3 100644 --- a/lib/fakefs/safe.rb +++ b/lib/fakefs/safe.rb @@ -463,7 +463,7 @@ module FakeFS end def FakeFS - return FakeFS unless block_given? + return ::FakeFS unless block_given? ::FakeFS.activate! yield ::FakeFS.deactivate!