diff options
| author | Luke Kanies <luke@madstop.com> | 2008-12-17 18:29:58 -0600 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-12-18 11:10:25 -0600 |
| commit | e4ba3db1963081eacc2aef3d865f777b427ef23c (patch) | |
| tree | 55a4aa8cdde262880a8affb6cbd4470d49c10c55 /test/util | |
| parent | b6db54585177f277b1e06bebd4d925d5c272b610 (diff) | |
| download | puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.tar.gz puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.tar.xz puppet-e4ba3db1963081eacc2aef3d865f777b427ef23c.zip | |
Deprecating the Puppet::Type.create.
This method is no longer necessary; you can use the
normal 'new' class method.
Signed-off-by: Luke Kanies <luke@madstop.com>
Diffstat (limited to 'test/util')
| -rwxr-xr-x | test/util/log.rb | 2 | ||||
| -rwxr-xr-x | test/util/storage.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/util/log.rb b/test/util/log.rb index 6b670c2bc..74bb1faa1 100755 --- a/test/util/log.rb +++ b/test/util/log.rb @@ -129,7 +129,7 @@ class TestLog < Test::Unit::TestCase # Verify that the error and source are always strings def test_argsAreStrings msg = nil - file = Puppet::Type.type(:file).create( + file = Puppet::Type.type(:file).new( :path => tempfile(), :check => %w{owner group} ) diff --git a/test/util/storage.rb b/test/util/storage.rb index 11c53a56a..531d1e7e1 100755 --- a/test/util/storage.rb +++ b/test/util/storage.rb @@ -12,7 +12,7 @@ class TestStorage < Test::Unit::TestCase path = tempfile() File.open(path, "w") { |f| f.puts :yayness } - f = Puppet::Type.type(:file).create( + f = Puppet::Type.type(:file).new( :name => path, :check => %w{checksum type} ) @@ -101,7 +101,7 @@ class TestStorage < Test::Unit::TestCase def test_caching hash = nil - one = Puppet::Type.type(:exec).create :title => "/bin/echo one" + one = Puppet::Type.type(:exec).new :title => "/bin/echo one" [one, :yayness].each do |object| assert_nothing_raised do hash = Puppet::Util::Storage.cache(object) |
