Sha256: 8e8b3f2c3ee21fca66d29997e42e779e8135db819a2ed24340ada5a47821189c
Contents?: true
Size: 534 Bytes
Versions: 13
Compression:
Stored size: 534 Bytes
Contents
require 'spec_helper' describe MintRemoteIdentifierWorker do let(:pid) { 'abc' } let(:target) { double } let(:remote_service_name) { :doi } let(:minter) { lambda { |name, target| target.remote_service_name = name } } before(:each) do ActiveFedora::Base.should_receive(:find).with(pid).and_return(target) Hydra::RemoteIdentifier.should_receive(:mint).with(remote_service_name, target) end subject { MintRemoteIdentifierWorker.new(pid, remote_service_name) } specify { subject.run } end
Version data entries
13 entries across 13 versions & 1 rubygems