From 28950fa71c9dc0fb541b4f32cb92cf1cd0ba31bb Mon Sep 17 00:00:00 2001 From: Scott Taylor Date: Tue, 12 Jan 2010 10:30:43 -0500 Subject: [PATCH] move require stringio to FakeFS::File --- lib/fakefs/file.rb | 2 ++ lib/fakefs/safe.rb | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fakefs/file.rb b/lib/fakefs/file.rb index 6c03f74..d9dac53 100644 --- a/lib/fakefs/file.rb +++ b/lib/fakefs/file.rb @@ -1,3 +1,5 @@ +require 'stringio' + module FakeFS class File < StringIO PATH_SEPARATOR = '/' diff --git a/lib/fakefs/safe.rb b/lib/fakefs/safe.rb index 09a2bbb..a1b804c 100644 --- a/lib/fakefs/safe.rb +++ b/lib/fakefs/safe.rb @@ -1,6 +1,5 @@ require 'fileutils' require 'pathname' -require 'stringio' require 'fakefs/base' require 'fakefs/fake/file' require 'fakefs/fake/dir'