Sha256: a1aa6102e74f65695b0be5c3bffc1ec2c4a10c2c75de2f7fd6cfcb11f72f9061
Contents?: true
Size: 521 Bytes
Versions: 26
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(:check_fixity) described_class.perform("test:1") end end end end
Version data entries
26 entries across 26 versions & 1 rubygems