Skip to content

Commit

Permalink
Use the RDF::Vocab gem for predicates
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoyne committed Aug 8, 2016
1 parent 5d4cbbb commit 0854612
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hydra-core/spec/controllers/catalog_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@
end
it "should convert it" do
graph = RDF::Graph.new << RDF::Reader.for(:ntriples).new(response.body)
title_statement = graph.query([nil, RDF::DC.title, nil]).first
related_statement = graph.query([nil, RDF::DC.isReferencedBy, nil]).first
title_statement = graph.query([nil, RDF::Vocab::DC.title, nil]).first
related_statement = graph.query([nil, RDF::Vocab::DC.isReferencedBy, nil]).first
expect(title_statement.subject).to eq RDF::URI("http://hydra.box/catalog/#{asset.id}")
expect(related_statement.object).to eq RDF::URI("http://hydra.box/catalog/#{related.id}")
end
Expand Down

0 comments on commit 0854612

Please sign in to comment.