From 91de901babbdfead97234169e17edae502f525e4 Mon Sep 17 00:00:00 2001 From: Matt Freels Date: Mon, 27 Jul 2009 10:44:31 -0700 Subject: [PATCH] make fakefs/safe pull in dependencies --- lib/fakefs.rb | 11 +---------- lib/fakefs/safe.rb | 9 +++++++++ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/lib/fakefs.rb b/lib/fakefs.rb index 2332c0b..972f92a 100644 --- a/lib/fakefs.rb +++ b/lib/fakefs.rb @@ -1,12 +1,3 @@ -require 'fileutils' -require 'pathname' -require 'fakefs/base' -require 'fakefs/fake/file' -require 'fakefs/fake/dir' -require 'fakefs/fake/symlink' -require 'fakefs/file_system' -require 'fakefs/fileutils' -require 'fakefs/file' -require 'fakefs/dir' +require 'fakefs/safe' FakeFS.activate! diff --git a/lib/fakefs/safe.rb b/lib/fakefs/safe.rb index e1df0d5..61eebab 100644 --- a/lib/fakefs/safe.rb +++ b/lib/fakefs/safe.rb @@ -1,4 +1,13 @@ +require 'fileutils' +require 'pathname' require 'fakefs/base' +require 'fakefs/fake/file' +require 'fakefs/fake/dir' +require 'fakefs/fake/symlink' +require 'fakefs/file_system' +require 'fakefs/fileutils' +require 'fakefs/file' +require 'fakefs/dir' def FakeFS return ::FakeFS unless block_given?