Skip to content
This repository has been archived by the owner on May 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #390 from sul-dlss/add-test
Browse files Browse the repository at this point in the history
Add a test for APO indexing
  • Loading branch information
justinlittman committed Nov 29, 2018
2 parents 95633da + f2cc44d commit dcd7c59
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/models/admin_policy_object_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,13 @@
'defaultObjectRights']
end
end

describe '#to_solr' do
subject(:doc) { apo.to_solr }
let(:apo) { described_class.new(pid: 'foo:123') }

before { allow(Dor::Config.workflow.client).to receive(:get_milestones).and_return([]) }

it { is_expected.to include 'active_fedora_model_ssi' => 'Dor::AdminPolicyObject' }
end
end

0 comments on commit dcd7c59

Please sign in to comment.