I am trying to test file upload but when I am doing:
controller_specs
…
post ‘some_path’, params: { file: Rack::Test::UploadedFile.new(…) }
…
I get in controller file as string “Rack::Test::UploadedFile:123123123”, so I can’t pass files in controller spec.
Does anyone know how to do it right? I think I am missing something.
![Screenshot from 2021-06-03 12-46-28](http://discourse-boltops.s3.dualstack.us-west-2.amazonaws.com/original/1X/9e584f112c3437bb49ec86f133e5ab205c781033.png)