[rspec-users] Faking FS in specs
ngw at nofeed.org
Sun Mar 13 15:37:22 EDT 2011
hi Scott, thanks for the answer.
I'm not even calling it inside the specs.
On Mar 13, 2011, at 5:28 PM, Scott Taylor wrote:
> How are you requiring FakeFS?
> 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 run specs after changing spec_helper. The exception it raises is:
>> /Users/ngw/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/1.9.1/pathname.rb:446:in `realpath': undefined method `realpath' for FakeFS::File:Class (NoMethodError)
>> Is it a problem with my version of Ruby ? If it is, how do I test this stuff ? It's very annoying to have the files saved in /public for every autotest I run ...
>> rspec-users mailing list
>> rspec-users at rubyforge.org
> rspec-users mailing list
> rspec-users at rubyforge.org
More information about the rspec-users