On 18 Jul 2013, at 12:23, Ian Moss <[email protected]> wrote: > Given that the ActiveAdmin 'controller' method 'export' exports a csv > and it has been called in a http request, > And I'm using TestUnit > As A Developer, I want to assert that the file 'export.txt' is created > and sent as a http response > > I guess it must create a tmp file somewhere, but I've not found that to > be the case yet. > > For reference: http://www.activeadmin.info/docs/4-csv-format.html
I'm not sure if what you're after really is what TestUnit is good at. It sounds more like you're after an integration test or possibly functional test, but you're trying to get there with a unit test. Either break it out into multiple independent unit tests, or use something else other than TestUnit would be my call. -- You received this message because you are subscribed to the Google Groups "NWRUG" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nwrug-members. For more options, visit https://groups.google.com/groups/opt_out.
