Sha256: fd207378bf0ccd433398d89ce8859a282420274743054d834e6cb98086059172
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
require 'spec_helper' describe CurationConcerns::Actors::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
curation_concerns-1.0.0.beta2 | spec/actors/curation_concerns/file_actor_spec.rb |