Get WebMock matchers to work
This commit is contained in:
parent
e026159e03
commit
40fa873a9b
2 changed files with 7 additions and 4 deletions
|
|
@ -37,11 +37,12 @@ describe External::MailblusterHelper, type: :helper do
|
|||
}', status: 200)
|
||||
create_lead(user)
|
||||
expect(WebMock).to have_requested(:post, "api.mailbluster.com/api/leads").with(body: {
|
||||
'firstName': user.name,
|
||||
'email': user.email,
|
||||
'firstName': user.name,
|
||||
'overrideExisting': true,
|
||||
'subscribed': true,
|
||||
'tags': ["snapcon"],
|
||||
'overrideExisting': true})
|
||||
}.to_json)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue