Add missing hook to spec
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Basti 2021-02-03 19:11:43 +01:00
parent 58cc6811f9
commit 656c887811
Signed by untrusted user: basti
GPG Key ID: 9F88009D31D99C72

View File

@ -21,4 +21,9 @@ RSpec.describe ExchangeXmppContactsJob, type: :job do
expect(WebMock).to have_requested(:post, "http://xmpp.example.com/api/add_rosteritem") expect(WebMock).to have_requested(:post, "http://xmpp.example.com/api/add_rosteritem")
.with { |req| req.body == '{"localuser":"willherschel","localhost":"kosmos.org","user":"isaacnewton","host":"kosmos.org","nick":"isaacnewton","group":"Friends","subs":"both"}' } .with { |req| req.body == '{"localuser":"willherschel","localhost":"kosmos.org","user":"isaacnewton","host":"kosmos.org","nick":"isaacnewton","group":"Friends","subs":"both"}' }
end end
after do
clear_enqueued_jobs
clear_performed_jobs
end
end end