HomePhorge

Make spec_helper manage tmpdir.
8941d675a27aUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Make spec_helper manage tmpdir.

This adds management of the ENV[TMPDIR] when running rspec tests using
spec_helper. Before tests are being run, a temporary directory is
created under the current tmpdir. This temporary directory is then set
as the ENV[TMPDIR].

After all tests have been run, this temporary directory is removed.
The directory is created with the prefix "rspecrun" to easily identify
it in case the spec testing crashes before having cleaned up.

Conflicts:

spec/spec_helper.rb

Details

Provenance
Henrik Lindberg <henrik.lindberg@cloudsmith.com>Authored on
Josh Cooper <josh@puppetlabs.com>Committed on Dec 12 2012, 7:23 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU0cd02fd81f07: Merge branch 'nfagerlund-17856_fix_wrong_hasrestart_docs' into 2.7.x
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU8941d675a27a: Make spec_helper manage tmpdir. (authored by Henrik Lindberg <henrik.lindberg@cloudsmith.com>).Dec 12 2012, 7:23 PM