summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/providers/group.rb2
-rw-r--r--test/providers/user.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/test/providers/group.rb b/test/providers/group.rb
index 364d1750d..a23dbb50c 100755
--- a/test/providers/group.rb
+++ b/test/providers/group.rb
@@ -65,7 +65,7 @@ class TestGroupProvider < Test::Unit::TestCase
%x{nireport / /groups name gid}.split("\n").each { |line|
group, id = line.chomp.split(/\s+/)
assert(id =~ /^-?\d+$/, "Group id %s for %s is not a number" %
- [id, group])
+ [id.inspect, group])
if group == name
return Integer(id)
end
diff --git a/test/providers/user.rb b/test/providers/user.rb
index e400ff3ad..0778a257f 100644
--- a/test/providers/user.rb
+++ b/test/providers/user.rb
@@ -129,7 +129,7 @@ class TestUserProvider < Test::Unit::TestCase
when :name: name
when :ensure: :present
when :comment: "Puppet Testing User %s" % name
- when :gid: Process.gid()
+ when :gid: nonrootgroup.name
when :shell: findshell()
when :home: "/home/%s" % name
else