HomePhorge

maint: Stub spec test so directory is not created unnecessarily
9f39cc476246Unpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

maint: Stub spec test so directory is not created unnecessarily

One of the spec tests required that the parent directory (in this case
/tmp) already exist and that /tmp/my_directory could be created. This
fails on Windows as /tmp likely doesn't exist, and also the test
doesn't actually need to create the directory.

This commit forces the call to exists? with the parent directory to
return true, and stubs the mkdir call so that the directory is not
actually created.

It also makes the raise_error expectation look for the specific error
message, instead of a generic DevError.

Details

Provenance
Josh Cooper <josh@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU299932691c7a: Merge remote-tracking branch 'jhelwig/add-missing-commit-for-ruby-1.8.5…
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU9f39cc476246: maint: Stub spec test so directory is not created unnecessarily (authored by Josh Cooper <josh@puppetlabs.com>).Aug 22 2011, 6:40 PM