From 4f57a63e04a9c4075053da5a4e5aa6aa97560b56 Mon Sep 17 00:00:00 2001 From: "wade@bindshell.net" Date: Fri, 30 Sep 2011 11:32:24 +0000 Subject: [PATCH] test files added git-svn-id: https://beef.googlecode.com/svn/trunk@1327 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9 --- test/unit/core/tc_api.rb | 20 ++++++++++++++++++++ test/unit/core/tc_core.rb | 20 ++++++++++++++++++++ test/unit/core/tc_loader.rb | 20 ++++++++++++++++++++ 3 files changed, 60 insertions(+) create mode 100644 test/unit/core/tc_api.rb create mode 100644 test/unit/core/tc_core.rb create mode 100644 test/unit/core/tc_loader.rb diff --git a/test/unit/core/tc_api.rb b/test/unit/core/tc_api.rb new file mode 100644 index 000000000..2055ba4c7 --- /dev/null +++ b/test/unit/core/tc_api.rb @@ -0,0 +1,20 @@ +require 'test/unit' +require 'webrick' + +class TC_Api < Test::Unit::TestCase + + def setup + $root_dir="../../" + $:.unshift File.join( %w{ ../../ } ) + end + + # + # Test the api is functional + # + def test_api + assert_nothing_raised do + require 'core/api' + end + end + +end diff --git a/test/unit/core/tc_core.rb b/test/unit/core/tc_core.rb new file mode 100644 index 000000000..5e5fefb49 --- /dev/null +++ b/test/unit/core/tc_core.rb @@ -0,0 +1,20 @@ +require 'test/unit' +require 'webrick' + +class TC_Core < Test::Unit::TestCase + + def setup + $root_dir="../../" + $:.unshift File.join( %w{ ../../ } ) + end + + # + # Test the core is functional + # + def test_core + assert_nothing_raised do + require 'core/core' + end + end + +end diff --git a/test/unit/core/tc_loader.rb b/test/unit/core/tc_loader.rb new file mode 100644 index 000000000..7992b0a30 --- /dev/null +++ b/test/unit/core/tc_loader.rb @@ -0,0 +1,20 @@ +require 'test/unit' +require 'webrick' + +class TC_Loader < Test::Unit::TestCase + + def setup + $root_dir="../../" + $:.unshift File.join( %w{ ../../ } ) + end + + # + # Test the loader is functional + # + def test_loader + assert_nothing_raised do + require 'core/loader' + end + end + +end