Task mvp upstream sync

This commit is contained in:
Senad Uka
2020-06-15 11:02:00 +02:00
parent 9d7e2c044a
commit 8ad89371b8
15 changed files with 62 additions and 27 deletions

View File

@@ -118,7 +118,7 @@ RSpec.describe TaskRequestsController, type: :controller do
private
def task_request_params
attributes = attributes_for(:task_request).except(:status)
attributes = attributes_for(:task_request).except(:status, :user_email)
files = 2.times.map { Rack::Test::UploadedFile.new(file_fixture("location_photo.png"), "image/png") }
attributes.merge({ files: files })