summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-16 19:49:14 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-08-16 19:49:14 +0000
commit607d7c6afec7ab73203382676cc98b6d52898e1d (patch)
treeb6679ee27e0bec2b270da67eedc199cfd9d1ac54 /test/puppet
parent12452ee9ca294563f2e2724ff36f179004f9846f (diff)
A first pass of changing one of the types of names to titles. I still have to fix a lot of tests, but the core itself is now working.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1471 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppet')
-rwxr-xr-xtest/puppet/utiltest.rb27
1 files changed, 27 insertions, 0 deletions
diff --git a/test/puppet/utiltest.rb b/test/puppet/utiltest.rb
index c2dcdada5..481b8a9fe 100755
--- a/test/puppet/utiltest.rb
+++ b/test/puppet/utiltest.rb
@@ -336,6 +336,33 @@ class TestPuppetUtil < Test::Unit::TestCase
"Var %s did not take" % var)
end
end
+
+ def test_symbolize
+ ret = nil
+ assert_nothing_raised {
+ ret = Puppet::Util.symbolize("yayness")
+ }
+
+ assert_equal(:yayness, ret)
+
+ assert_nothing_raised {
+ ret = Puppet::Util.symbolize(:yayness)
+ }
+
+ assert_equal(:yayness, ret)
+
+ assert_nothing_raised {
+ ret = Puppet::Util.symbolize(43)
+ }
+
+ assert_equal(43, ret)
+
+ assert_nothing_raised {
+ ret = Puppet::Util.symbolize(nil)
+ }
+
+ assert_equal(nil, ret)
+ end
end
# $Id$