On Sun, 11 Jan 2009 04:31:06 +0900, Phlip <[email protected]> wrote:
> > Simon Macneall wrote: > >> I have some functional tests that require XML input that gets set into >> the >> RAW_POST_DATA. I would like to get the XML for each tests from files (to >> save having lots of XML in my test.rb. Is there anything in the testing >> framework to handle this, or should I just load the file manually? > > > If you don't mean that, then just write a folder in test/fixtures and > put XML > files in it, then write a test helper method to load them into your > params. > Yeah, that's what I meant. That's basically what I ended up doing, but I was wondering if there was any test helpers already, or if there was a 'best practise' way of doing it. Cheers Simon --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---

