diff options
author | rautenberg <rautenberg@in-silico.ch> | 2012-05-07 17:48:06 +0200 |
---|---|---|
committer | rautenberg <rautenberg@in-silico.ch> | 2012-05-07 17:48:06 +0200 |
commit | d6f9c38c44fd6b7e41eca1f57451cc452cc4eec7 (patch) | |
tree | 23131e2f6a4d48f1af444a406479edd71d47c9bd /test/error.rb | |
parent | e55a25e9fb0c91a581f898ce894a27e8bdd3d780 (diff) | |
parent | 6f25a7f04863b4fc6dccab59d690695371f1f0c7 (diff) |
Diffstat (limited to 'test/error.rb')
-rw-r--r-- | test/error.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/error.rb b/test/error.rb deleted file mode 100644 index d736620..0000000 --- a/test/error.rb +++ /dev/null @@ -1,35 +0,0 @@ -require 'test/unit' -$LOAD_PATH << File.join(File.dirname(__FILE__),'..','lib') -require File.join File.dirname(__FILE__),'..','lib','opentox-client.rb' - -class ErrorTest < Test::Unit::TestCase - - def test_bad_request - object = OpenTox::Feature.new "http://this-is-a/fantasy/url" - assert_raise OpenTox::NotFoundError do - response = object.get - end - end - - def test_error_methods - assert_raise OpenTox::NotFoundError do - not_found_error "This is a test" - end - end - - def test_exception - assert_raise Exception do - raise Exception.new "Basic Exception" - end - end - - def test_backtick - assert_raise OpenTox::InternalServerError do - `this call will not work` - end - assert_raise OpenTox::InternalServerError do - `ls inexisting_directory` - end - end - -end |