Sha256: c6ee220348ab3e77185f3e042797e91a26c31ecb3f5284225b3bed8788732ae6

Contents?: true

Size: 390 Bytes

Versions: 16

Compression:

Stored size: 390 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../lib/puppettest'

require 'puppet'
require 'puppettest'

class TestError < Test::Unit::TestCase
    include PuppetTest

    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

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
puppet-0.25.5 test/puppet/errortest.rb
puppet-0.25.4 test/puppet/errortest.rb
puppet-0.25.3 test/puppet/errortest.rb
puppet-0.24.9 test/puppet/errortest.rb
puppet-0.25.2 test/puppet/errortest.rb
puppet-0.25.1 test/puppet/errortest.rb
puppet-0.25.0 test/puppet/errortest.rb
puppet-0.24.0 test/puppet/errortest.rb
puppet-0.24.2 test/puppet/errortest.rb
puppet-0.24.1 test/puppet/errortest.rb
puppet-0.24.3 test/puppet/errortest.rb
puppet-0.24.4 test/puppet/errortest.rb
puppet-0.24.6 test/puppet/errortest.rb
puppet-0.24.7 test/puppet/errortest.rb
puppet-0.24.5 test/puppet/errortest.rb
puppet-0.24.8 test/puppet/errortest.rb