Methods for file uploads in Ruby on Rails + RSpec.
fixture_file_upload
Rack::Test::UploadedFile.new
ActionController::TestUploadedFile.new
ActionDispatch::Http::UploadedFile.new
[Reference]:ruby - How do I test a file upload in rails? - Stack Overflow
That’s all from the Gemba.