This commit is contained in:
Senad Uka
2020-07-15 11:57:21 +02:00
parent 4c49a5db03
commit da8e187430
135 changed files with 1952 additions and 1115 deletions

View File

@@ -54,14 +54,16 @@ RSpec.describe AccountsController, type: :controller do
end
it "enqueues hubspot form submission job" do
ENV["HUBSPOT_FORM_GUID"] = "form_guid"
expect {
post :create, params: params
}.to have_enqueued_job(SubmitHubspotFormJob).with(
"John",
"Doe",
"test_user+1@test.com",
"Test Dev account",
i_m_interested_in: "DirectME"
first_name: "John",
last_name: "Doe",
email: "test_user+1@test.com",
company: "Test Dev account",
i_m_interested_in: "DirectME",
form_guid: "form_guid"
)
end
end