test files added
git-svn-id: https://beef.googlecode.com/svn/trunk@1327 b87d56ec-f9c0-11de-8c8a-61c5e9addfc9
This commit is contained in:
20
test/unit/core/tc_api.rb
Normal file
20
test/unit/core/tc_api.rb
Normal 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
20
test/unit/core/tc_core.rb
Normal 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
|
||||
20
test/unit/core/tc_loader.rb
Normal file
20
test/unit/core/tc_loader.rb
Normal 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
|
||||
Reference in New Issue
Block a user