summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2013-11-29 17:50:47 +0100
committerrautenberg <rautenberg@in-silico.ch>2013-11-29 17:50:47 +0100
commitb0c3aa85aea1e624716ca676ce0af878edcfdf8d (patch)
treef1f7ad48f0a71457ee7e150a48db0d789a4ad883
parent166f89868eb9ef85869195b4a16ddf19610b4b3e (diff)
positiv, negative test for sparql templates
-rw-r--r--test/toxbank-investigation-sparql.rb9
1 files changed, 7 insertions, 2 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index bd8a525..5c3cde5 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -17,9 +17,14 @@ class TBSPARQLTest < MiniTest::Test
@@uri = URI(uri)
end
- # initial test to be changed
- def test_01_initial
+ # initial tests to be changed
+ def test_01_initial_nonexisting_template
response = OpenTox::RestClientWrapper.get "#{@@uri}/sparql/not_existing_template", {}, {:accept => "application/rdf+xml", :subjectid => $pi[:subjectid]}
+ assert_equal 404, response.code
+ end
+
+ def test_02_initial_existing_template
+ response = OpenTox::RestClientWrapper.get "#{@@uri}/sparql/investigation_details", {}, {:accept => "application/rdf+xml", :subjectid => $pi[:subjectid]}
assert_equal 200, response.code
end