From c2986f418ede0ea443df0a1f7690c433b637dc57 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Wed, 29 Feb 2012 18:50:41 +0000 Subject: TaskError implemented, logging still partially redundant --- test/task.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/task.rb b/test/task.rb index ea5ee2f..f01282b 100644 --- a/test/task.rb +++ b/test/task.rb @@ -10,6 +10,8 @@ TASK_SERVICE_URI = "http://ot-dev.in-silico.ch/task" class TaskTest < Test::Unit::TestCase +=begin +=end def test_all all = OpenTox::Task.all(TASK_SERVICE_URI) assert_equal Array, all.class @@ -45,7 +47,7 @@ class TaskTest < Test::Unit::TestCase def test_create_and_fail task = OpenTox::Task.create TASK_SERVICE_URI, :description => "test failure", :creator => "http://test.org/fake_creator" do sleep 1 - raise "an error occured" + raise "an unexpected error occured" end assert task.running? assert_equal "Running", task.hasStatus @@ -65,5 +67,7 @@ class TaskTest < Test::Unit::TestCase assert task.error? assert_equal "Error", task.hasStatus end +=begin +=end end -- cgit v1.2.3