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