[rspec-users] Faking FS in specs

Matt Wynne matt at mattwynne.net
Sun Mar 13 18:22:35 EDT 2011

On 13 Mar 2011, at 22:05, Avdi Grimm wrote:

> On Sun, Mar 13, 2011 at 10:30 AM, Nicholas Wieland <ngw at nofeed.org> 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_helper. The exception it raises is:
> An alternative you might try is Construct: https://github.com/devver/construct
> We created it at Devver because we had trouble with libraries like
> FakeFS. Instead of faking out the FS, it simply gives you tools to set
> up the needed file structures and then automatically clean them up
> when the test is done.

I wonder if you could similarly use Aruba's library for that in RSpec. It might need some tweaks.

> -- 
> Avdi Grimm
> http://avdi.org
> _______________________________________________
> rspec-users mailing list
> rspec-users at rubyforge.org
> http://rubyforge.org/mailman/listinfo/rspec-users


matt at mattwynne.net
07974 430184

More information about the rspec-users mailing list