From 7fa7251e30dfefc95dda6ef82181d4346f36880d Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Wed, 16 Jul 2008 22:00:38 -0500 Subject: The mongrel-related tests now run without mongrel. Here were the main changes necessary: * Fixed the class loader so it only loads mongrel if it's available. * Fixed the test runner to skip example groups contained in non-runnable example groups. * Fixed the Mongrel tests to use quoted class names instead of constants, since the constants themselves would be absent. Signed-off-by: Luke Kanies --- test/lib/puppettest/runnable_test.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/lib') diff --git a/test/lib/puppettest/runnable_test.rb b/test/lib/puppettest/runnable_test.rb index e4b0f9033..e3cde5052 100644 --- a/test/lib/puppettest/runnable_test.rb +++ b/test/lib/puppettest/runnable_test.rb @@ -15,6 +15,9 @@ module PuppetTest # Evaluate all of our tests to see if any of them are false # and thus whether this test is considered not runnable. def runnable? + if superclass.respond_to?(:runnable?) and ! superclass.runnable? + return false + end @messages ||= [] return false unless @messages.empty? return true unless defined? @confines -- cgit