diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-11-19 17:31:27 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-11-19 17:31:27 +0100 |
commit | 2824a2fdb2aa308ad77ead17ee6c7cba9c69ab46 (patch) | |
tree | 807aa180a7edd24c044bb8f651adeb72e8e37d13 /task.rb | |
parent | 533e1b918a80d23af78a886442d4c82d853f829f (diff) |
Initial sketch of unit tests, cucumber tests are obsolete
Diffstat (limited to 'task.rb')
-rw-r--r-- | task.rb | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -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 |