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

Version Path
curate-0.6.6 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.6.5 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.6.4 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.6.3 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.6.1 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.6.0 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.6 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.5 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.4 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.2 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.1 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.5.0 spec/workers/mint_remote_identifier_worker_spec.rb
curate-0.4.2 spec/workers/mint_remote_identifier_worker_spec.rb