From f8b6f8d19566d372e47edba7968ce66ff09052c9 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Thu, 26 Apr 2012 16:04:05 +0200 Subject: tests removed, URI.accessible? check temporarily removed --- test/error.rb | 35 ----------------------------------- 1 file changed, 35 deletions(-) delete mode 100644 test/error.rb (limited to 'test/error.rb') 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 -- cgit v1.2.3