Skip to content

Commit

Permalink
Don't need Fedora for Enricher.
Browse files Browse the repository at this point in the history
  • Loading branch information
Trey Terrell committed Aug 4, 2015
1 parent ce803a7 commit 11bac7e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion spec/services/enricher_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
subject { described_class.new(id) }
let(:id) { asset.id }
let(:asset) do
GenericAsset.create do |g|
a = GenericAsset.new do |g|
g.lcsubject = [uri]
end
allow(a).to receive(:id).and_return("yo")
solr.add a.to_solr.merge(:id => a.id)
solr.commit
a
end
let(:uri) { resource.rdf_subject }
let(:resource) do
Expand All @@ -15,6 +19,7 @@
r.persist!
r
end
let(:solr) { ActiveFedora.solr.conn }

describe "#enrich!" do
it "should enrich the solr document" do
Expand Down

0 comments on commit 11bac7e

Please sign in to comment.