Hi, I want to write an application which enables a user to upload a PDF file to our server. I would like to develop this application using a test-driven approach and the Rails default test suite. However, I am not sure what I need to test and what I don''t need to test. To elaborate: a user should be able to click on the "select file" button, select a file and press "submit". If the file is a PDF then it will be uploaded to the server and written to the filesystem (as opposed to a database), keeping its original name. If the file is not a PDF, then an error message will be shown and the form will be re-rendered. I would be really grateful if someone could give me some pointers as to what to test here and what not. For example, would it be sensible to test that when a file is selected and the form is submitted, that a file is actually uploaded? Or is this something which would have been tested by the developpers of Carrierwave? Thanks in advance. -- Posted via http://www.ruby-forum.com/. -- 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.