summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-23 13:19:59 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-23 13:25:58 -0800
commit99f4d2fe6c3e9d7483206c0788ba5b3fe9f48454 (patch)
tree4901acc5a97375cc70ca765ab7102ac322d2aa87 /lib/puppet/util/rdoc/code_objects.rb
parent3d2fbf604f997e6b9fd94edb96419ffa9869e709 (diff)
downloadpuppet-99f4d2fe6c3e9d7483206c0788ba5b3fe9f48454.tar.gz
puppet-99f4d2fe6c3e9d7483206c0788ba5b3fe9f48454.tar.xz
puppet-99f4d2fe6c3e9d7483206c0788ba5b3fe9f48454.zip
Maint: made upstart tests more robust.
The tests for the upstart provider were attempting to stub Process::Status.exitstatus. However, this doesn't work (presumably because Process::Status is implemented in C). As a result, the upstart spec tests were failing if the most recent exit code was nonzero. Changed the tests so that instead of stubbing Process::Status.exitstatus to return zero, they execute a command that is known to succeed (`true`). Paired-with: Jesse Wolfe <jesse@puppetlabs.com>
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions