summaryrefslogtreecommitdiffstats
path: root/test/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-08-28 16:15:05 -0500
committerLuke Kanies <luke@madstop.com>2007-08-28 16:15:05 -0500
commit6832a4b08ecddbe017cc6393bc02cb448e607b1b (patch)
tree76b9e243e84b2ea587f7f14a236e620c8f9e8d67 /test/puppet
parent2625eb1db70361f9f14710ccc36090374ee282fb (diff)
downloadpuppet-6832a4b08ecddbe017cc6393bc02cb448e607b1b.tar.gz
puppet-6832a4b08ecddbe017cc6393bc02cb448e607b1b.tar.xz
puppet-6832a4b08ecddbe017cc6393bc02cb448e607b1b.zip
Fixing some failing unit tests.
Diffstat (limited to 'test/puppet')
-rwxr-xr-xtest/puppet/defaults.rb26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/puppet/defaults.rb b/test/puppet/defaults.rb
index 19db3fe05..383153e45 100755
--- a/test/puppet/defaults.rb
+++ b/test/puppet/defaults.rb
@@ -38,32 +38,6 @@ class TestPuppetDefaults < Test::Unit::TestCase
}
end
- if __FILE__ == $0
- def disabled_testContained
- confdir = Regexp.new(Puppet[:confdir])
- vardir = Regexp.new(Puppet[:vardir])
- [@@dirs,@@files].flatten.each { |param|
- value = Puppet[param]
-
- unless value =~ confdir or value =~ vardir
- assert_nothing_raised { raise "%s is in wrong dir: %s" %
- [param,value] }
- end
- }
- end
- end
-
- def testArgumentTypes
- assert_raise(ArgumentError) { Puppet[["string"]] }
- assert_raise(ArgumentError) { Puppet[[:symbol]] }
- end
-
- def testFailOnBogusArgs
- [0, "ashoweklj", ";"].each { |param|
- assert_raise(ArgumentError, "No error on %s" % param) { Puppet[param] }
- }
- end
-
# we don't want user defaults in /, or root defaults in ~
def testDefaultsInCorrectRoots
notval = nil