test files added

git-svn-id: https://beef.googlecode.com/svn/trunk@1327 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
wade@bindshell.net
2011-09-30 11:32:24 +00:00
parent 0778a3c329
commit 4f57a63e04
3 changed files with 60 additions and 0 deletions

20
test/unit/core/tc_api.rb Normal file
View File

@@ -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

20
test/unit/core/tc_core.rb Normal file
View File

@@ -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

View File

@@ -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