summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-01-19 11:30:04 -0800
committerLuke Kanies <luke@madstop.com>2008-01-19 11:30:04 -0800
commit0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e (patch)
tree686bf1609785cdd017c299266bdef41165f6baa5 /test
parent1f15c80587529192321658a2e51fda33d481ced5 (diff)
parent4618140eb0dad58fd54e0543b9a2629c2d675623 (diff)
downloadpuppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.tar.gz
puppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.tar.xz
puppet-0a7b028a9abf48e5358e7032cf3f3184c4c3ba5e.zip
Merge branch '0.24.x'
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/providers/package.rb2
-rwxr-xr-xtest/ral/types/file.rb5
2 files changed, 6 insertions, 1 deletions
diff --git a/test/ral/providers/package.rb b/test/ral/providers/package.rb
index 90c862178..f2d28d0f0 100755
--- a/test/ral/providers/package.rb
+++ b/test/ral/providers/package.rb
@@ -46,7 +46,7 @@ class TestPackageProvider < Test::Unit::TestCase
end
facts = {}
Facter.to_hash.each do |fact, value|
- facts[fact.downcase.intern] = value.downcase.intern
+ facts[fact.to_s.downcase.intern] = value.to_s.downcase.intern
end
list.find_all { |hash| # First find the matching providers
hash.include?(:provider) and providers.include?(hash[:provider])
diff --git a/test/ral/types/file.rb b/test/ral/types/file.rb
index a3a0c579a..aa2e63a89 100755
--- a/test/ral/types/file.rb
+++ b/test/ral/types/file.rb
@@ -1817,5 +1817,10 @@ class TestFile < Test::Unit::TestCase
changes = obj.evaluate
assert(changes.empty?, "Missing file with no ensure resulted in changes")
end
+
+ def test_root_dir_is_named_correctly
+ obj = Puppet::Type.newfile(:path => '/', :mode => 0755)
+ assert_equal("/", obj.title, "/ directory was changed to empty string")
+ end
end