Sha256: 51aa8db7db43beda2e57d545f11e89cebbbe443c514d95da4e774eca8c63be0f
Contents?: true
Size: 647 Bytes
Versions: 13
Compression:
Stored size: 647 Bytes
Contents
require 'spec_helper' describe CurationConcerns::FileActor do include ActionDispatch::TestProcess let(:user) { create(:user) } let(:file_set) { create(:file_set) } let(:relation) { create(:file_set) } let(:actor) { described_class.new(file_set, 'remastered', user) } let(:uploaded_file) { fixture_file_upload('/world.png', 'image/png') } describe '#ingest_file' do it 'calls ingest file job' do expect(CharacterizeJob).to receive(:perform_later) expect(IngestFileJob).to receive(:perform_later).with(file_set, /world\.png$/, 'image/png', user, 'remastered') actor.ingest_file(uploaded_file) end end end
Version data entries
13 entries across 13 versions & 1 rubygems