Fix spec that was not updated with update to delete_lead

This commit is contained in:
CactusPuppy 2021-04-09 11:53:54 -07:00
parent aab281e116
commit e65108e2fb
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -131,7 +131,7 @@ describe MailblusterManager, type: :model do
lead_url = url + email_hash.to_s
stub_request(:delete, lead_url)
.to_return(body: response_body)
response = described_class.delete_lead(user)
response = described_class.delete_lead(user.email)
expect(WebMock).to have_requested(:delete, lead_url)
expect(response).to eq(response_body)