summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-01 20:22:19 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2005-11-01 20:22:19 +0000
commit300a1632432b5aa5e0221d28fe0a2ce90c422131 (patch)
treece4e28ba94caab4814abd509ba1768b04bae99fb /test/puppet
parent14d8186ebe8740eab1b320e6a1d6c98c255ad70f (diff)
downloadpuppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.tar.gz
puppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.tar.xz
puppet-300a1632432b5aa5e0221d28fe0a2ce90c422131.zip
Further progress towards the next release. Lots of small bugs fixed, the paths look much better now, and Transportable is much cleaner.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@740 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/puppet')
-rwxr-xr-xtest/puppet/error.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/test/puppet/error.rb b/test/puppet/error.rb
new file mode 100755
index 000000000..f27d79822
--- /dev/null
+++ b/test/puppet/error.rb
@@ -0,0 +1,23 @@
+if __FILE__ == $0
+ $:.unshift '..'
+ $:.unshift '../../lib'
+ $puppetbase = "../.."
+end
+
+require 'puppet'
+require 'puppettest'
+require 'test/unit'
+
+class TestError < Test::Unit::TestCase
+ include TestPuppet
+
+ def test_errorisstring
+ error = nil
+ assert_nothing_raised {
+ error = Puppet::ParseError.new("This is an error")
+ }
+ assert_instance_of(String, error.to_s)
+ end
+end
+
+# $Id$