summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2013-03-27 17:44:19 +0100
committerChristoph Helma <helma@in-silico.ch>2013-03-27 17:44:19 +0100
commit724e20934e25a58b2ee212fb9fa284ee0d663488 (patch)
tree9271d2c789e1c3c8ba050ce6614e7aa636ed18ca
parentd2f3808e55a61ca56af4916301bb29af168e33ab (diff)
test.rb temporarily added
-rw-r--r--test.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/test.rb b/test.rb
new file mode 100644
index 0000000..6f91719
--- /dev/null
+++ b/test.rb
@@ -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