Sha256: 866f5686819bf6904b04894889c8d41340dcd74d676162cfbd245a6ea42e3536
Contents?: true
Size: 830 Bytes
Versions: 6
Compression:
Stored size: 830 Bytes
Contents
#!/usr/bin/env ruby # # Created by Luke A. Kanies on 2007-03-05. # Copyright (c) 2007. All rights reserved. require 'puppettest' require 'puppettest/runnable_test' require 'test/unit' class PuppetTest::TestCase < Test::Unit::TestCase include PuppetTest extend PuppetTest::RunnableTest def self.suite # Always skip this parent class. It'd be nice if there were a # "supported" way to do this. if self == PuppetTest::TestCase suite = Test::Unit::TestSuite.new(name) return suite elsif self.runnable? return super else if defined? $console puts "Skipping %s: %s" % [name, @messages.join(", ")] end suite = Test::Unit::TestSuite.new(name) return suite end end end
Version data entries
6 entries across 6 versions & 1 rubygems