From 54a225dd26d867d5672df48a5bc0ed858821bf40 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Sat, 1 Aug 2009 23:24:54 -0700 Subject: Fixing tests broken by caching autoload results These tests tried to load something, verified the loads didn't work, and then created the thing to load. This is a bit silly, so I just removed those sections of the tests. Signed-off-by: Luke Kanies --- test/language/functions.rb | 4 ++-- test/util/subclass_loader.rb | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) (limited to 'test') diff --git a/test/language/functions.rb b/test/language/functions.rb index 9f0e8a594..af0732559 100755 --- a/test/language/functions.rb +++ b/test/language/functions.rb @@ -359,8 +359,8 @@ class TestLangFunctions < Test::Unit::TestCase end def test_autoloading_functions - assert_equal(false, Puppet::Parser::Functions.function(:autofunc), - "Got told autofunc already exists") + #assert_equal(false, Puppet::Parser::Functions.function(:autofunc), + # "Got told autofunc already exists") dir = tempfile() $: << dir diff --git a/test/util/subclass_loader.rb b/test/util/subclass_loader.rb index 34b8803fc..0efd636f4 100755 --- a/test/util/subclass_loader.rb +++ b/test/util/subclass_loader.rb @@ -31,13 +31,6 @@ class TestPuppetUtilSubclassLoader < Test::Unit::TestCase end def test_subclass_loading - # Make sure we don't get a failure but that we also get nothing back - assert_nothing_raised do - assert_nil(LoadTest.faker(:fake), - "Got something back from a missing subclass") - assert_nil(LoadTest.fake, - "Got something back from missing subclass method") - end # Make a fake client mk_subclass("fake", "puppet/fakeloaders", "TestPuppetUtilSubclassLoader::LoadTest") -- cgit