Skip to content

Commit

Permalink
Add create mitic applicant 2024 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
anayib committed Apr 15, 2024
1 parent 249c52d commit cf81c04
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions spec/controllers/pages_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@
describe "POST #create_proinnovate_2024_applicant" do
it "responds with status 200" do
request.headers.merge!({ 'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.XbPfbIHMI6arZ3Y922BhjWgQzWXcXNrz0ogtVhfEd2o" })
post :create_lead,
params: { program_name: "", convertloop_event: "qa-tester", first_name: "Pedro", last_name: "Perez", email: "[email protected]" }
post :create_proinnovate_2024_applicant,
params: { applicant:{ program_name: "", convertloop_event: "qa-tester", first_name: "Pedro", last_name: "Perez", email: "[email protected]" }}
expect(response).to have_http_status(:ok)
end
end
Expand All @@ -84,4 +84,13 @@
expect(response).to have_http_status(:ok)
end
end

describe "POST #create_mitic_applicant" do
it "responds with status 200" do
request.headers.merge!({ 'Authorization': "Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.XbPfbIHMI6arZ3Y922BhjWgQzWXcXNrz0ogtVhfEd2o" })
post :create_mitic_applicant,
params: { applicant: {program_name: "AI", first_name: "Pedro", last_name: "Perez", email: "[email protected]" }}
expect(response).to have_http_status(:ok)
end
end
end

0 comments on commit cf81c04

Please sign in to comment.