diff options
author | Matt Jankowski <matt@jankowski.online> | 2023-03-04 10:56:09 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-04 16:56:09 +0100 |
commit | 39e7525c96962ad33b27d9cb4bd5fa8086060b75 (patch) | |
tree | 9633afa2fc209ed8fbae9ff174424ecf74dc54ea /spec/workers/remove_featured_tag_worker_spec.rb | |
parent | f9c2213ae5e12f14a38506c728a9598b337969cb (diff) |
Add basic coverage for some worker jobs (#23943)
Diffstat (limited to 'spec/workers/remove_featured_tag_worker_spec.rb')
-rw-r--r-- | spec/workers/remove_featured_tag_worker_spec.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/workers/remove_featured_tag_worker_spec.rb b/spec/workers/remove_featured_tag_worker_spec.rb new file mode 100644 index 000000000..a64bd0605 --- /dev/null +++ b/spec/workers/remove_featured_tag_worker_spec.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe RemoveFeaturedTagWorker do + let(:worker) { described_class.new } + + describe 'perform' do + it 'runs without error for missing record' do + account_id = nil + featured_tag_id = nil + expect { worker.perform(account_id, featured_tag_id) }.to_not raise_error + end + end +end |