Re: [rspec-users] Mocking expectations on I/O operations

2011-09-14 Thread Justin Ko
On Wed, Sep 14, 2011 at 6:51 AM, Rob Aldred wrote: > I'm speccing a small lib which manipulates image files using mini_magick. > The lib creates various temporary files during the process, the lib then > cleans up the temporary files at the end. > > I'm trying to mock expectations that the calls

[rspec-users] Mocking expectations on I/O operations

2011-09-14 Thread Rob Aldred
I'm speccing a small lib which manipulates image files using mini_magick. The lib creates various temporary files during the process, the lib then cleans up the temporary files at the end. I'm trying to mock expectations that the calls are made to File#delete Eg... File.should_receive(:delete).o