I have a conditional that checks for the content_type
off of a ActionDispatch::Http::UploadedFile
but the File
class in Ruby doesn't have something like that so is it possible to test this rspec?
Asked
Active
Viewed 610 times
1

stackjlei
- 9,485
- 18
- 65
- 113
-
Possible duplicate of https://stackoverflow.com/questions/4600679/detect-mime-type-of-uploaded-file-in-ruby – max May 31 '17 at 23:09
-
It would be easier to answer the question if you post this code – Paweł Dąbrowski Jun 01 '17 at 09:51