Sha256: 574d98efc4972c6e4e957c0b806e2ebfc47fa168433817578d742f6636bc9989

Contents?: true

Size: 513 Bytes

Versions: 4

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

4 entries across 4 versions & 1 rubygems

Version Path
geoblacklight_sidecar_images-0.9.2 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-1.0.0 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.9.1 spec/jobs/store_image_job_spec.rb
geoblacklight_sidecar_images-0.9.0 spec/jobs/store_image_job_spec.rb