summaryrefslogtreecommitdiff
path: root/task.rb
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.ch>2010-11-19 17:31:27 +0100
committerChristoph Helma <helma@in-silico.ch>2010-11-19 17:31:27 +0100
commit2824a2fdb2aa308ad77ead17ee6c7cba9c69ab46 (patch)
tree807aa180a7edd24c044bb8f651adeb72e8e37d13 /task.rb
parent533e1b918a80d23af78a886442d4c82d853f829f (diff)
Initial sketch of unit tests, cucumber tests are obsolete
Diffstat (limited to 'task.rb')
-rw-r--r--task.rb29
1 files changed, 29 insertions, 0 deletions
diff --git a/task.rb b/task.rb
new file mode 100644
index 0000000..3d4de65
--- /dev/null
+++ b/task.rb
@@ -0,0 +1,29 @@
+require 'rubygems'
+require 'opentox-ruby-api-wrapper'
+require 'test/unit'
+require "./validate-owl.rb"
+
+class TaskTest < Test::Unit::TestCase
+
+ def setup
+ end
+
+ def teardown
+ end
+
+ def test_create_and_complete
+ task = OpenTox::Task.create { "http://test.org"}
+ assert_equal task.status, "Running"
+ task.wait_for_completion
+ assert_equal task.status, "Completed"
+ end
+
+
+ def test_rdf
+ task = OpenTox::Task.new OpenTox::Task.all.first
+ validate_owl(task.uri)
+ end
+=begin
+=end
+
+end