On Thursday, 18 July 2013 12:23:22 UTC+1, Ian M 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. 
>
>  
Isn't the fact that it creates/uses a file irrelevant?  

I would say that you want to test that the HTTP response is a CSV mime-type 
with the content you are expecting.  

Or have I misunderstood?

Rahoul

-- 
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.


Reply via email to