diff options
author | rautenberg <rautenberg@in-silico.ch> | 2013-11-29 17:54:32 +0100 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2013-11-29 17:54:32 +0100 |
commit | 90208a192f406c469975b10149be947bac3211f3 (patch) | |
tree | c3b9a5f660c254c1ab1e77542b7e77ca53482562 | |
parent | b0c3aa85aea1e624716ca676ce0af878edcfdf8d (diff) |
positiv, negative test for sparql templates
-rw-r--r-- | test/toxbank-investigation-sparql.rb | 5 |
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 |