Sha256: c2961f86bb7012efe601f591ccff428215bd78482602e3a8797ecaf1e0edb328

Contents?: true

Size: 521 Bytes

Versions: 41

Compression:

Stored size: 521 Bytes

Contents

require 'spec_helper'

module Ddr::Jobs
  RSpec.describe FixityCheck do

    it "should use the :fixity queue" do
      expect(described_class.queue).to eq(:fixity)
    end

    describe ".perform" do
      let!(:obj) { double(fixity_check: nil) }
      before do
        allow(ActiveFedora::Base).to receive(:find).with("test:1") { obj }
      end
      it "should call `fixity_check` on the object" do
        expect(obj).to receive(:fixity_check)
        described_class.perform("test:1")
      end
    end

  end
end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
ddr-models-2.6.2 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.1 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.0 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.0.rc4 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.0.rc3 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.0.rc2 spec/jobs/fixity_check_spec.rb
ddr-models-2.6.0.rc1 spec/jobs/fixity_check_spec.rb
ddr-models-2.5.3 spec/jobs/fixity_check_spec.rb
ddr-models-2.5.2 spec/jobs/fixity_check_spec.rb
ddr-models-2.5.1 spec/jobs/fixity_check_spec.rb
ddr-models-2.5.0 spec/jobs/fixity_check_spec.rb
ddr-models-2.5.0.rc1 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.16 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.15 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.14 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.13 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.12 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.11 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.10 spec/jobs/fixity_check_spec.rb
ddr-models-2.4.9 spec/jobs/fixity_check_spec.rb