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

Version Path
curation_concerns-1.0.0.beta1 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.14.0 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.14.0.pre4 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.14.0.pre3 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.14.0.pre2 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.14.0.pre1 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.13.1 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.13.0 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre9 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre8 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre7 spec/actors/curation_concerns/file_actor_spec.rb
curation_concerns-0.12.0.pre6 spec/actors/curation_concerns/file_actor_spec.rb