diff options
| author | Luke Kanies <luke@madstop.com> | 2008-05-15 10:51:11 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-05-15 10:51:11 -0500 |
| commit | e7bef08bbac951dd1b798273af3ff2b098bf9187 (patch) | |
| tree | 9613215af8c6292ce6cfb7d36f631773928ecafa /spec/unit/ral | |
| parent | 158d3df805ebe28f52db5ced928dda7129aeec1b (diff) | |
| download | puppet-e7bef08bbac951dd1b798273af3ff2b098bf9187.tar.gz puppet-e7bef08bbac951dd1b798273af3ff2b098bf9187.tar.xz puppet-e7bef08bbac951dd1b798273af3ff2b098bf9187.zip | |
Fixing the user test.
It was causing exceptions when run as part of the whole suite.
Diffstat (limited to 'spec/unit/ral')
| -rwxr-xr-x | spec/unit/ral/type/user.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/spec/unit/ral/type/user.rb b/spec/unit/ral/type/user.rb index 4e43a8ceb..b697426dc 100755 --- a/spec/unit/ral/type/user.rb +++ b/spec/unit/ral/type/user.rb @@ -2,13 +2,11 @@ require File.dirname(__FILE__) + '/../../../spec_helper' -require 'puppet/type/user' - module UserTestFunctions def mkuser(name) user = nil; lambda { - user = Puppet::Type::User.create( + user = Puppet::Type.type(:user).create( :name => name, :comment => "Puppet Testing User", :gid => Puppet::Util::SUIDManager.gid, @@ -30,12 +28,12 @@ module UserTestFunctions end end -describe Puppet::Type::User do +describe Puppet::Type.type(:user) do include UserTestFunctions it "should have a default provider inheriting from Puppet::Provider" do - test_provider_class Puppet::Type::User.defaultprovider + test_provider_class Puppet::Type.type(:user).defaultprovider end it "should be able to create a instance" do @@ -43,7 +41,7 @@ describe Puppet::Type::User do end end -describe Puppet::Type::User, "instances" do +describe Puppet::Type.type(:user), "instances" do include UserTestFunctions |
