Skip to content

Commit

Permalink
change subject to subject interest on lead creation, fix lead spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Oct 30, 2023
1 parent ecdf543 commit 2b757ff
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 15 deletions.
2 changes: 1 addition & 1 deletion app/routines/newflow/create_salesforce_lead.rb
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def exec(user:)
position: sf_position,
title: user.other_role_name,
who_chooses_books: user.who_chooses_books,
subject: user.which_books,
subject_interest: user.which_books,
num_students: user.how_many_students,
adoption_status: ADOPTION_STATUS_FROM_USER[user.using_openstax_how],
adoption_json: adoption_json,
Expand Down
19 changes: 11 additions & 8 deletions spec/cassettes/Newflow_CreateSalesforceLead/sf_setup.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 2 additions & 6 deletions spec/routines/newflow/create_salesforce_lead_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,16 +34,12 @@ module Newflow
end
end

xit 'works on the happy path' do
it 'works on the happy path' do
expect(Rails.logger).not_to receive(:warn)

lead = described_class[user: user]
expect(lead.errors).to be_empty


lead_from_sf = user.lead
expect(lead_from_sf).not_to be_nil
expect(lead_from_sf.application_source).to eq "Account Creation"
expect(user.salesforce_lead_id).not_to be_nil
end
end
end
1 change: 1 addition & 0 deletions spec/vcr_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ def filter_secret(path_to_secret)

%w(
instance_url
login_domain
username
password
security_token
Expand Down

0 comments on commit 2b757ff

Please sign in to comment.