summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2007-11-19 10:30:12 -0600
committerLuke Kanies <luke@madstop.com>2007-11-19 10:30:12 -0600
commit8f82fc42844931efe8df042cf2d40d0d624c2d55 (patch)
tree02849949d5625f72346001a74dae0c4e86bc7b16 /test
parent0ae55774a67f481181feeb241538a94bbeae88de (diff)
parenta6ad326f71b8aaa0bce40c4d6c29195c53ec1d1f (diff)
downloadpuppet-8f82fc42844931efe8df042cf2d40d0d624c2d55.tar.gz
puppet-8f82fc42844931efe8df042cf2d40d0d624c2d55.tar.xz
puppet-8f82fc42844931efe8df042cf2d40d0d624c2d55.zip
Merge commit 'davids-bugfixes/tests/fix-cron-tests'
Diffstat (limited to 'test')
-rwxr-xr-xtest/ral/types/cron.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ral/types/cron.rb b/test/ral/types/cron.rb
index a9a00240c..ca60477ed 100755
--- a/test/ral/types/cron.rb
+++ b/test/ral/types/cron.rb
@@ -464,9 +464,9 @@ class TestCron < Test::Unit::TestCase
inst = @crontype.create(
:name => "something", :command => "/some/thing",
:provider => :crontab)
- assert_equal(ENV["USER"], inst.should(:user),
+ assert_equal(Etc.getpwuid(Process.uid).name, inst.should(:user),
"user did not default to current user with crontab")
- assert_equal(ENV["USER"], inst.should(:target),
+ assert_equal(Etc.getpwuid(Process.uid).name, inst.should(:target),
"target did not default to current user with crontab")
# Now make a new cron with a user, and make sure it gets copied