« Return to Thread: Attachment-fu + Story Runner
On Dec 11, 2007 10:57 AM, Daniel Tenner <daniel.ruby@...> wrote:I've pasted up the code at:Since there are quite a few files involved.Thanks for your time,A similar discussion was raised back in november (about fixture_file_upload):Instead of mocking the FileUpload, why not provide a real one?After all, the StoryRunner is aimed to fully exercise your code :-DAlso, adjust the path of your TestFileUpload file location, instead ofa relative one (../spec/fixtures) provide one related to RAILS_ROOT,which will work no matter where you put your helper or what is yourcurrent directory (Dir.chdir).HTH,--Luis LavenaMultimedia systems-A common mistake that people make when trying to designsomething completely foolproof is to underestimatethe ingenuity of complete fools.Douglas Adams_______________________________________________rspec-users mailing list
« Return to Thread: Attachment-fu + Story Runner
| Free embeddable forum powered by Nabble | Forum Help |