From 0854612507007f6c0c1335b8093951fbbdc5f21a Mon Sep 17 00:00:00 2001 From: Justin Coyne Date: Mon, 8 Aug 2016 10:43:25 -0500 Subject: [PATCH] Use the RDF::Vocab gem for predicates --- hydra-core/spec/controllers/catalog_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hydra-core/spec/controllers/catalog_controller_spec.rb b/hydra-core/spec/controllers/catalog_controller_spec.rb index c3f9cedd3..2a85442a0 100644 --- a/hydra-core/spec/controllers/catalog_controller_spec.rb +++ b/hydra-core/spec/controllers/catalog_controller_spec.rb @@ -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