summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-18 22:47:59 +0000
committerLuke Kanies <luke@madstop.com>2005-04-18 22:47:59 +0000
commit69a127644d4ba32376bfefb886523ec04fe8eab4 (patch)
tree19524b8a36dcf4bf5ccba2ceca766235b6647a71 /test
parentde360c97d90e7af5c44f57959ebeaa6f0c8cdbb4 (diff)
adding some tests on the interface methods in Blink::Type
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@187 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
-rw-r--r--test/types/tc_type.rb34
1 files changed, 34 insertions, 0 deletions
diff --git a/test/types/tc_type.rb b/test/types/tc_type.rb
new file mode 100644
index 000000000..e3d1b9dce
--- /dev/null
+++ b/test/types/tc_type.rb
@@ -0,0 +1,34 @@
+if __FILE__ == $0
+ $:.unshift '..'
+ $:.unshift '../../lib'
+ $blinkbase = "../.."
+end
+
+# $Id$
+
+require 'blink/type'
+require 'test/unit'
+
+class TestType < Test::Unit::TestCase
+ def test_typemethods
+ Blink::Type.eachtype { |type|
+ name = nil
+ assert_nothing_raised() {
+ name = type.name
+ }
+
+ assert(
+ name
+ )
+
+ assert_equal(
+ type,
+ Blink::Type.type(name)
+ )
+
+ assert(
+ type.namevar
+ )
+ }
+ end
+end