Sha256: 1949b6dbaf8d13b9503feb12f03ea5c1863217fe4973913e5fcfef901b4830b5

Contents?: true

Size: 513 Bytes

Versions: 8

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

require 'rails_helper'

describe GeoblacklightSidecarImages::StoreImageJob, type: :job do
  let(:document) { SolrDocument.new(document_attributes) }

  describe '#perform_later' do
    let(:document_attributes) { json_data('umn_iiif_jpg') }

    it 'stores an image' do
      ActiveJob::Base.queue_adapter = :test
      expect { GeoblacklightSidecarImages::StoreImageJob.perform_later(document.id) }.to have_enqueued_job(GeoblacklightSidecarImages::StoreImageJob)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
geoblacklight_sidecar_images-0.8.1 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.8.0 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.7.0 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.6.5 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.6.4 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.6.2 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.6.1 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.6.0 spec/jobs/store_image_job_spec.rb