Fixed spec @user
This commit is contained in:
parent
5500fc8acf
commit
cc57973103
2 changed files with 3 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ describe External::MailblusterHelper, type: :helper do
|
|||
|
||||
describe 'create_lead' do
|
||||
it 'makes a post request to Mailbluster\'s API' do
|
||||
create_lead(@user)
|
||||
create_lead(user)
|
||||
expect(WebMock).to have_requested(:post, "api.mailbluster.com/api/leads").
|
||||
with { |req| req.body == "abc" }
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue