Files
old-holivud2/spec/factories/casting_submissions.rb
2020-07-22 13:37:34 +00:00

18 lines
582 B
Ruby

FactoryBot.define do
factory :casting_submission do
association :casting_call
performer_name 'John Doe'
zoom_meeting_url 'https://us04web.zoom.us/j/1111111111?pwd=aDZCS1dzZ2lWdDZJcHBhVnNIclB4QT03'
interview_date { 10.days.from_now }
interviewed_at { nil }
trait :with_files do
files { [Rack::Test::UploadedFile.new('spec/fixtures/files/location_photo.png', 'image/png')] }
end
trait :with_interview_recording do
interview_recording { Rack::Test::UploadedFile.new('spec/fixtures/files/video_file.mp4', 'video/mp4') }
end
end
end