summaryrefslogtreecommitdiffstats
path: root/test/util
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-15 19:22:36 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-05-15 19:22:36 +0000
commitdbedcd7b9892bc41728a4f334464f152d09d54fc (patch)
tree66e06fa8fec48ea00491a728ed24906e6b810812 /test/util
parent28f7d6c7ebd56da3014464c82c73a4f98f3406ea (diff)
downloadpuppet-dbedcd7b9892bc41728a4f334464f152d09d54fc.tar.gz
puppet-dbedcd7b9892bc41728a4f334464f152d09d54fc.tar.xz
puppet-dbedcd7b9892bc41728a4f334464f152d09d54fc.zip
A round of fixes so unit tests pass; most of the failures were from the merging of the transaction-refactor branch
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2517 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/util')
-rwxr-xr-xtest/util/posixtest.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/test/util/posixtest.rb b/test/util/posixtest.rb
index 7939afd46..8c4174144 100755
--- a/test/util/posixtest.rb
+++ b/test/util/posixtest.rb
@@ -90,8 +90,9 @@ class TestPosixUtil < Test::Unit::TestCase
:check => [:gid]
)
obj.setdefaults
- obj.retrieve
- id = obj.is(:gid)
+ current = obj.retrieve
+ id = nil
+ current.find { |prop, value| id = value if prop.name == :gid }
gid = nil
assert_nothing_raised {
gid = Puppet::Util.gid(id)
@@ -146,7 +147,7 @@ class TestPosixUtil < Test::Unit::TestCase
)
obj.setdefaults
obj.retrieve
- id = obj.is(:uid)
+ id = obj.provider.uid
uid = nil
assert_nothing_raised {
uid = Puppet::Util.uid(id)
@@ -170,4 +171,4 @@ class TestPosixUtil < Test::Unit::TestCase
end
end
-# $Id$ \ No newline at end of file
+# $Id$