Sha256: a515ae4885377c0edb4eedec7947e7a9e1d27ecd16b08a6c7b1336d04701fd7d

Contents?: true

Size: 656 Bytes

Versions: 7

Compression:

Stored size: 656 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.user_key, 'remastered')
      actor.ingest_file(uploaded_file)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
curation_concerns-0.12.0.pre5 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre4 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre3 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre2 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre1 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.11.0 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.11.0.rc1 spec/actors/curation_concerns/file_actor_spec.rb