On Dec 11, 2007 10:57 AM, Daniel Tenner <[EMAIL PROTECTED]> wrote: > > I've pasted up the code at: > > http://pastie.caboo.se/126925 > > Since there are quite a few files involved. > > Thanks for your time, >
A similar discussion was raised back in november (about fixture_file_upload): http://rubyforge.org/pipermail/rspec-users/2007-November/004378.html Instead of mocking the FileUpload, why not provide a real one? After all, the StoryRunner is aimed to fully exercise your code :-D Also, adjust the path of your TestFileUpload file location, instead of a relative one (../spec/fixtures) provide one related to RAILS_ROOT, which will work no matter where you put your helper or what is your current directory (Dir.chdir). HTH, -- Luis Lavena Multimedia systems - A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools. Douglas Adams _______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users