summaryrefslogtreecommitdiffstats
path: root/lib/puppet/util/rdoc/code_objects.rb
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2011-02-25 14:56:58 -0800
committerPaul Berry <paul@puppetlabs.com>2011-02-25 14:56:58 -0800
commit23a510a321e47a98768dc47f95cfa0bd8c1a314c (patch)
tree96361304f3cae69ba9eef416a1977db88741dd7f /lib/puppet/util/rdoc/code_objects.rb
parentc57c508e938083115bbc00037901f652505288b0 (diff)
downloadpuppet-23a510a321e47a98768dc47f95cfa0bd8c1a314c.tar.gz
puppet-23a510a321e47a98768dc47f95cfa0bd8c1a314c.tar.xz
puppet-23a510a321e47a98768dc47f95cfa0bd8c1a314c.zip
(#4914) Improved stubbing in mount/parsed_spec tests.
A few of the spec tests were attempting to stub Puppet::Type::Mount#default_target so that it pointed to a temporary file rather than /etc/fstab, but they were creating the stub after the first call to default_target, so both /etc/fstab and the temporary file were being read. This caused errors when running spec tests on platforms where /etc/fstab is unreadable by non-privileged users. Fixed the problem by moving the stub declaration earlier in the test.
Diffstat (limited to 'lib/puppet/util/rdoc/code_objects.rb')
0 files changed, 0 insertions, 0 deletions