require 'rails_helper'

describe DeleteUploadJob, type: :job do
  describe '#run' do
    subject(:run) { described_class.run(data) }

    let(:data) { { some: 'image-data' } }

    it 'passes the data to Shrine::Attacher' do
      expect(Shrine::Attacher).to receive(:delete).with(data)
      run
    end
  end
end
