summaryrefslogtreecommitdiff
path: root/test/toxbank-investigation-sparql.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/toxbank-investigation-sparql.rb')
-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