unpublish_announcement_worker_spec.rb 283 B

12345678910111213
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. describe UnpublishAnnouncementWorker do
  4. let(:worker) { described_class.new }
  5. describe 'perform' do
  6. it 'runs without error for missing record' do
  7. expect { worker.perform(nil) }.to_not raise_error
  8. end
  9. end
  10. end