Sha256: 5a3b7ac2cf11513c153efdcd8db292bb82d326396c5bd60d752fad0b6b72c286
Contents?: true
Size: 640 Bytes
Versions: 9
Compression:
Stored size: 640 Bytes
Contents
require 'spec_helper' describe CharacterizeJob do let(:file_set) { FileSet.new(id: file_set_id) } let(:file_set_id) { 'abc123' } let(:filename) { double } before do allow(ActiveFedora::Base).to receive(:find).with(file_set_id).and_return(file_set) end it 'runs Hydra::Works::CharacterizationService and creates a CreateDerivativesJob' do expect(Hydra::Works::CharacterizationService).to receive(:run).with(file_set, filename) expect(file_set).to receive(:save) expect(CreateDerivativesJob).to receive(:perform_later).with(file_set_id, filename) described_class.perform_now file_set_id, filename end end
Version data entries
9 entries across 9 versions & 1 rubygems