Upstream cast me sync
This commit is contained in:
@@ -60,12 +60,6 @@ RSpec.describe CastingCallsController, type: :controller do
|
||||
post :create, params: { project_id: project.id, casting_call: casting_call_params }
|
||||
}.to have_enqueued_job(TrackAnalyticsJob).with(user, account, :track_create_casting_call, user_agent: "Rails Testing", user_ip: "0.0.0.0")
|
||||
end
|
||||
|
||||
it "submits data to hubspot form" do
|
||||
expect {
|
||||
post :create, params: { project_id: project.id, casting_call: casting_call_params }
|
||||
}.to have_enqueued_job(SubmitHubspotFormJob)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#update" do
|
||||
|
||||
@@ -36,8 +36,9 @@ RSpec.describe CastingSubmissionsController, type: :controller do
|
||||
it "shows files of casting submission" do
|
||||
get :show, params: { project_id: project, id: casting_submission.id }
|
||||
|
||||
expect(response.body).to have_content("Filename")
|
||||
expect(response.body).to have_content("location_photo.png")
|
||||
expect(response.body).to have_content(casting_submission.performer_name)
|
||||
expect(response.body).to have_content(casting_submission.casting_call.title)
|
||||
expect(response.body).to have_content(casting_submission.casting_call.project_description)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -19,9 +19,6 @@ RSpec.describe Public::CastingCallsController, type: :controller do
|
||||
expect(response.body).to have_content(casting_call.title)
|
||||
expect(response.body).to have_content(casting_call.description)
|
||||
expect(response.body).to have_content(casting_call.project_description)
|
||||
expect(response.body).to have_content(casting_call.interview_instructions)
|
||||
expect(response.body).to have_content(casting_call.interview_requirements)
|
||||
expect(response.body).to have_content(casting_call.questions)
|
||||
expect(response.body).to have_link("Schedule an Audition")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user