diff options
| author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-16 04:14:32 +0000 |
|---|---|---|
| committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2005-09-16 04:14:32 +0000 |
| commit | ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59 (patch) | |
| tree | 200749a544b99507b6d6ff0347df03aaa7cf82db /test/other/tc_transactions.rb | |
| parent | f7116e58714d9c66409acfc836ba271957b1b2af (diff) | |
| download | puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.tar.gz puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.tar.xz puppet-ac0454a4bfcf6e9ecd3f3eb6037f04caa3c3ce59.zip | |
making "Type.new" private, and switching to "Type.create", so that i can merge new objects with existing objects and such; converted all files, and tested them
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@674 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/other/tc_transactions.rb')
| -rw-r--r-- | test/other/tc_transactions.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/other/tc_transactions.rb b/test/other/tc_transactions.rb index 9a8523883..946d53279 100644 --- a/test/other/tc_transactions.rb +++ b/test/other/tc_transactions.rb @@ -65,13 +65,13 @@ class TestTransactions < FileTesting @@tmpfiles.push tmpfile hash[:name] = tmpfile assert_nothing_raised() { - return Puppet::Type::PFile.new(hash) + return Puppet::Type::PFile.create(hash) } end def newservice assert_nothing_raised() { - return Puppet::Type::Service.new( + return Puppet::Type::Service.create( :name => "sleeper", :path => File.join($puppetbase,"examples/root/etc/init.d"), :check => [:running] @@ -81,7 +81,7 @@ class TestTransactions < FileTesting def newexec(file) assert_nothing_raised() { - return Puppet::Type::Exec.new( + return Puppet::Type::Exec.create( :name => "touch %s" % file, :path => "/bin:/usr/bin:/sbin:/usr/sbin", :returns => 0 |
