diff options
author | Christoph Helma <helma@in-silico.ch> | 2013-03-27 17:44:19 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2013-03-27 17:44:19 +0100 |
commit | 724e20934e25a58b2ee212fb9fa284ee0d663488 (patch) | |
tree | 9271d2c789e1c3c8ba050ce6614e7aa636ed18ca | |
parent | d2f3808e55a61ca56af4916301bb29af168e33ab (diff) |
test.rb temporarily added
-rw-r--r-- | test.rb | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -0,0 +1,16 @@ +#for testing the error handling + +module OpenTox + class Application < Service + + post '/dataset/test/error_in_task/?' do + task = OpenTox::Task.run("error_in_task", @uri, @subjectid) do |task| + sleep 1 + internal_server_error "error_in_task_message" + end + response['Content-Type'] = 'text/uri-list' + halt 202,task.uri.to_s+"\n" + end + + end +end |