From d0d21b4f103359002c41c8b4e84b1c82b4632553 Mon Sep 17 00:00:00 2001 From: gebele Date: Wed, 2 Apr 2014 18:05:37 +0200 Subject: test for subtask uri in metadata --- test/toxbank-investigation-rest.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index 0f2c7c5..e9943a8 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -152,6 +152,8 @@ class TBInvestigationREST < MiniTest::Test RDF::Reader.for(:rdfxml).new(response.to_s){|r| r.each{|s| @g << s}} assert @g.has_predicate?(RDF::DC.title), "Metadata Graph don't have predicate #{RDF::DC.title}" @g.query(:predicate => RDF::DC.title){|r| assert_match /Growth control of the eukaryote cell: a systems biology study in yeast/, r[2].to_s} + # check subtask uri for raw data + assert @g.has_predicate?(RDF::ISA.hasSubTaskURI), "Metadata Graph don't have predicate #{RDF::ISA.hasSubTaskURI}" end # check that policy files not listed in uri-list -- cgit v1.2.3