summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrautenberg <rautenberg@in-silico.ch>2013-11-29 17:54:32 +0100
committerrautenberg <rautenberg@in-silico.ch>2013-11-29 17:54:32 +0100
commit90208a192f406c469975b10149be947bac3211f3 (patch)
treec3b9a5f660c254c1ab1e77542b7e77ca53482562
parentb0c3aa85aea1e624716ca676ce0af878edcfdf8d (diff)
positiv, negative test for sparql templates
-rw-r--r--test/toxbank-investigation-sparql.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/toxbank-investigation-sparql.rb b/test/toxbank-investigation-sparql.rb
index 5c3cde5..0adc2e6 100644
--- a/test/toxbank-investigation-sparql.rb
+++ b/test/toxbank-investigation-sparql.rb
@@ -19,8 +19,9 @@ class TBSPARQLTest < MiniTest::Test
# 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
+ assert_raises OpenTox::ResourceNotFoundError do
+ response = OpenTox::RestClientWrapper.get "#{@@uri}/sparql/not_existing_template", {}, {:accept => "application/rdf+xml", :subjectid => $pi[:subjectid]}
+ end
end
def test_02_initial_existing_template