blob: f27d798226ad3d9193393fd8aa1c6edd464eb358 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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$
|