From 80a2ab981fad314d76f66f14e3644c6a5b170a55 Mon Sep 17 00:00:00 2001 From: gebele Date: Fri, 26 Sep 2014 14:39:36 +0200 Subject: included license test in isatab data --- .../toxbank-investigation/valid/BII-I-1b-tb2.zip | Bin 13735 -> 13422 bytes test/toxbank-investigation-rest.rb | 1 + 2 files changed, 1 insertion(+) diff --git a/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip b/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip index 4ffc1db..88823d1 100644 Binary files a/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip and b/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip differ diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index ad138c3..155f2ac 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -152,6 +152,7 @@ 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} + @g.query(:predicate => RDF::DC.license){|r| assert_match /http\:\/\/testuri\.net\/license\.html/, r[2].to_s} #TODO add raw data for testing. Subtask is already removed at this point for this investigation # check subtask uri for raw data #assert @g.has_predicate?(RDF::ISA.hasSubTaskURI), "Metadata Graph don't have predicate #{RDF::ISA.hasSubTaskURI}" -- cgit v1.2.3