diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-01 20:22:19 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-11-01 20:22:19 +0000 |
commit | 300a1632432b5aa5e0221d28fe0a2ce90c422131 (patch) | |
tree | ce4e28ba94caab4814abd509ba1768b04bae99fb /test/puppet | |
parent | 14d8186ebe8740eab1b320e6a1d6c98c255ad70f (diff) | |
download | puppet-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-x | test/puppet/error.rb | 23 |
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$ |