Fix spec that was not updated with update to delete_lead
This commit is contained in:
parent
cacb265829
commit
34ac979109
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ describe MailblusterManager, type: :model do
|
||||||
lead_url = url + email_hash.to_s
|
lead_url = url + email_hash.to_s
|
||||||
stub_request(:delete, lead_url)
|
stub_request(:delete, lead_url)
|
||||||
.to_return(body: response_body)
|
.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(WebMock).to have_requested(:delete, lead_url)
|
||||||
expect(response).to eq(response_body)
|
expect(response).to eq(response_body)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue