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