summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgebele <gebele@in-silico.ch>2014-09-26 14:39:36 +0200
committergebele <gebele@in-silico.ch>2014-09-26 14:39:36 +0200
commit80a2ab981fad314d76f66f14e3644c6a5b170a55 (patch)
tree535916508d1c7fec5ec60abe8bbebd14e97f0b7c
parent8bce43c0fc79bfbf8e3d8c382b54c655e6495d29 (diff)
included license test in isatab data
-rw-r--r--test/data/toxbank-investigation/valid/BII-I-1b-tb2.zipbin13735 -> 13422 bytes
-rw-r--r--test/toxbank-investigation-rest.rb1
2 files changed, 1 insertions, 0 deletions
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
--- a/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip
+++ b/test/data/toxbank-investigation/valid/BII-I-1b-tb2.zip
Binary files 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}"