Upstream sync
This commit is contained in:
13
spec/factories/casting_call_interviews.rb
Normal file
13
spec/factories/casting_call_interviews.rb
Normal file
@@ -0,0 +1,13 @@
|
||||
FactoryBot.define do
|
||||
factory :casting_call_interview 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
|
||||
end
|
||||
end
|
||||
15
spec/factories/casting_calls.rb
Normal file
15
spec/factories/casting_calls.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
FactoryBot.define do
|
||||
factory :casting_call do
|
||||
association :project
|
||||
user_email 'test@email.com'
|
||||
description "Casting call description"
|
||||
project_description "Casting call project description"
|
||||
interview_instructions "Interview instructions"
|
||||
interview_requirements "Interview requirements"
|
||||
questions "Questions"
|
||||
|
||||
trait :cancelled do
|
||||
cancelled_at { Time.zone.now }
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user