diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-19 05:47:57 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-12-19 05:47:57 +0000 |
| commit | f851ca64cf3861ffa63cf2698fd4719361803f82 (patch) | |
| tree | 3415e3bf54691e9ff07f723fb72c4dfb5e8c040c /test | |
| parent | 9f4870637ce57d548d23c0b3330200014327c268 (diff) | |
| download | puppet-f851ca64cf3861ffa63cf2698fd4719361803f82.tar.gz puppet-f851ca64cf3861ffa63cf2698fd4719361803f82.tar.xz puppet-f851ca64cf3861ffa63cf2698fd4719361803f82.zip | |
Adding :replace aliases, as requested in #366.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1952 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/types/file.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/types/file.rb b/test/types/file.rb index 6c1635dbe..ef405638d 100755 --- a/test/types/file.rb +++ b/test/types/file.rb @@ -1801,6 +1801,15 @@ class TestFile < Test::Unit::TestCase assert_equal("testing", File.read(path), "file has the wrong content") end end + + # #366 + def test_replace_aliases + file = Puppet::Type.newfile :path => tempfile() + file[:replace] = :yes + assert_equal(:true, file[:replace], ":replace did not alias :true to :yes") + file[:replace] = :no + assert_equal(:false, file[:replace], ":replace did not alias :false to :no") + end end # $Id$ |
