Possible Duplicate:
test a file upload using rspec - rails
I don't know how to write test cases for file uploads. can you please help me
I have form with user_photo, name, email. i write test cases for name and email
like
fill_in "user_name", :with => "xyz"
fill_in "user_email", :with => "test@test.com"
but how can i write test cases for select photo ?