From 656c8878119de8680cac904c17b64ac24e29f12a Mon Sep 17 00:00:00 2001 From: Sebastian Kippe Date: Wed, 3 Feb 2021 19:11:43 +0100 Subject: [PATCH] Add missing hook to spec --- spec/jobs/exchange_xmpp_contacts_job_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/jobs/exchange_xmpp_contacts_job_spec.rb b/spec/jobs/exchange_xmpp_contacts_job_spec.rb index 1737c14..177e03c 100644 --- a/spec/jobs/exchange_xmpp_contacts_job_spec.rb +++ b/spec/jobs/exchange_xmpp_contacts_job_spec.rb @@ -21,4 +21,9 @@ RSpec.describe ExchangeXmppContactsJob, type: :job do 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"}' } end + + after do + clear_enqueued_jobs + clear_performed_jobs + end end