I would suggest that you write the test first and then code.  :)

This test code would be in your functional tests which exercise
the controller.

You will need to do the get request for the file and then have
your assertions check that what you get back is what you expect,
a PDF file in this case.

More info here:

http://guides.rubyonrails.org/testing.html#functional-tests-for-your-controllers

Have fun.

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

Reply via email to