diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-28 22:54:32 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2007-01-28 22:54:32 +0000 |
| commit | bf46e7d363bbedc683abd63ab159ed170803009a (patch) | |
| tree | 2d70322768d4024eb3db9ae9c0599eaaea288fb9 /test | |
| parent | 1f41c35c6c081c2f673d713588220e78d8c7c1b0 (diff) | |
Adding a "self_refresh" option, so resources can refresh themselves if they have changed in the current transaction.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2106 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test')
| -rwxr-xr-x | test/types/manager.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/types/manager.rb b/test/types/manager.rb index f4353c128..480e5a02e 100755 --- a/test/types/manager.rb +++ b/test/types/manager.rb @@ -39,6 +39,18 @@ class TestTypeManager < Test::Unit::TestCase assert_nil(FakeManager.type(:testing), "Type was not removed") assert(! defined?(FakeManager::Testing), "Constant was not removed") end + + def test_newtype + assert_nothing_raised do + FakeManager.newtype(:testing, :self_refresh => true) do + newparam(:name, :namevar => true) + end + end + + test = FakeManager.type(:testing) + assert(test, "did not get type") + assert(test.self_refresh, "did not set attribute") + end end # $Id$
\ No newline at end of file |
