diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-12-18 13:17:37 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-18 13:17:37 +0100 |
commit | 3b9a6049adf3ee6844a81622c297dd893836f79d (patch) | |
tree | faf39c54064077baa984998a589803ecb7ecf230 /spec/workers/admin | |
parent | fec4ed507466617ef34304b7d00d0383e8a958bb (diff) | |
parent | e061ea5f71109edbbf7869265f443448cace4f60 (diff) |
Merge pull request #1650 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'spec/workers/admin')
-rw-r--r-- | spec/workers/admin/domain_purge_worker_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/workers/admin/domain_purge_worker_spec.rb b/spec/workers/admin/domain_purge_worker_spec.rb new file mode 100644 index 000000000..b67c58b23 --- /dev/null +++ b/spec/workers/admin/domain_purge_worker_spec.rb @@ -0,0 +1,18 @@ +# frozen_string_literal: true + +require 'rails_helper' + +describe Admin::DomainPurgeWorker do + subject { described_class.new } + + describe 'perform' do + it 'calls domain purge service for relevant domain block' do + service = double(call: nil) + allow(PurgeDomainService).to receive(:new).and_return(service) + result = subject.perform('example.com') + + expect(result).to be_nil + expect(service).to have_received(:call).with('example.com') + end + end +end |