Cast me
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user