Re: [rspec-users] Faking FS in specs

2011-03-14 Thread Scott Taylor
Agreed with David - it simply hasn't been implemented in FakeFS. I'm actually a maintainer on the project, but don't have any steam to work on it right now. I'd certainly apply patches, though. FakeFS is a project of gradual enhancement, so even a patch that doesn't respect all of the argum

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread Matt Wynne
On 13 Mar 2011, at 22:05, Avdi Grimm wrote: > On Sun, Mar 13, 2011 at 10:30 AM, Nicholas Wieland wrote: >> Hi *, for some reasons I'm not able to fake writing on the FS during specs >> with carrierwave, someone managed to make it work ? >> I'm currently trying to use FakeFS, but apparently I'm

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread David Chelimsky
I think the problem is a missing API in FakeFS: http://rubydoc.info/gems/fakefs/0.3.1/FakeFS/File http://www.ruby-doc.org/core/classes/File.html#M24 On Mar 13, 2011, at 2:37 PM, Nicholas Wieland wrote: > hi Scott, thanks for the answer. > > https://gist.github.com/868356 > > I'm not even c

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread Avdi Grimm
On Sun, Mar 13, 2011 at 10:30 AM, Nicholas Wieland wrote: > Hi *, for some reasons I'm not able to fake writing on the FS during specs > with carrierwave, someone managed to make it work ? > I'm currently trying to use FakeFS, but apparently I'm not even able to run > specs after changing spec_h

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread Nicholas Wieland
hi Scott, thanks for the answer. https://gist.github.com/868356 I'm not even calling it inside the specs. ngw On Mar 13, 2011, at 5:28 PM, Scott Taylor wrote: > > How are you requiring FakeFS? > > Scott > > On Mar 13, 2011, at 10:30 AM, Nicholas Wieland wrote: > >> Hi *, for some reasons

Re: [rspec-users] Faking FS in specs

2011-03-13 Thread Scott Taylor
How are you requiring FakeFS? Scott On Mar 13, 2011, at 10:30 AM, Nicholas Wieland wrote: > Hi *, for some reasons I'm not able to fake writing on the FS during specs > with carrierwave, someone managed to make it work ? > I'm currently trying to use FakeFS, but apparently I'm not even able to

[rspec-users] Faking FS in specs

2011-03-13 Thread Nicholas Wieland
Hi *, for some reasons I'm not able to fake writing on the FS during specs with carrierwave, someone managed to make it work ? I'm currently trying to use FakeFS, but apparently I'm not even able to run specs after changing spec_helper. The exception it raises is: /Users/ngw/.rvm/rubies/ruby-1.9