diff options
author | gebele <gebele@in-silico.ch> | 2012-05-07 16:55:18 +0200 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2012-05-07 16:55:18 +0200 |
commit | 15c8e87680f380a818b5e834f45b89d37daccd16 (patch) | |
tree | f2e9a55e9f280b47bcacaee17cf278c64353a432 | |
parent | 8473d54bb7d344bbdf8fbe1351217f8fb7323a7e (diff) |
include rdf_check
-rw-r--r-- | test/toxbank-investigation-rest.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/toxbank-investigation-rest.rb b/test/toxbank-investigation-rest.rb index 3e1b295..a269216 100644 --- a/test/toxbank-investigation-rest.rb +++ b/test/toxbank-investigation-rest.rb @@ -43,6 +43,16 @@ class BasicTestCRUDInvestigation < Test::Unit::TestCase uri = task.resultURI @@uri = URI(uri) assert @@uri.host == URI($toxbank_investigation[:uri]).host + # check_rdf + response = `curl -i -k -H subjectid:#{@@subjectid} -H accept:application/rdf+xml #{$toxbank_investigation[:uri]}/0`.chomp + assert_match /[Term Source Name, OBI, DOID, BTO, NEWT, UO, CHEBI, PATO, TBP, TBC, TBO, TBU, TBK]/, response + assert_match /[Investigation Identifier, BII\-I\-1]/, response + assert_match /[Investigation Title, Growth control of the eukaryote cell\: a systems biology study in yeast]/, response + assert_match /[Investigation Description, Background Cell growth underlies many key cellular and developmental processes]/, response + assert_match /[Owning Organisation URI, TBO\:G176, Public]/, response + assert_match /[Consortium URI, TBC\:G2, Douglas Connect]/, response + assert_match /[Principal Investigator URI, TBU\:U115, Glenn Myatt]/, response + assert_match /[Investigation keywords, TBK\:Blotting, Southwestern;TBK\:Molecular Imaging;DOID\:primary carcinoma of the liver cells]/, response end # get investigation/{id} as text/uri-list |