diff options
Diffstat (limited to 'test')
| -rwxr-xr-x | test/ral/types/file.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
