HomePhorge

Cleanup and improve coverage of file type unit tests
8d2126295f2cUnpublished

Unpublished Commit · Learn More

Repository Importing: This repository is still importing.

Description

Cleanup and improve coverage of file type unit tests

This commit significantly reorganizes spec/unit/type/file_spec.rb, in
preparation for refactoring of the type to support Windows. It also adds
tests for most of the non-trivial untested methods of the file type.

Disabled symlink tests on Windows, removed duplicate #remove_existing
tests, fixed absolute path drive letter issue with the title, and
changed tests that added an expectation to File.unlink, as cleanup is
not able to unlink them.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
Josh Cooper <josh@puppetlabs.com>Committed on Sep 27 2011, 6:55 PM
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPUe002a50e988a: Merge branch 'array-to_s-1.9-stable' of https://github.com/5long/puppet into…
Branches
Unknown
Tags
Unknown

Event Timeline

Josh Cooper <josh@puppetlabs.com> committed rPU8d2126295f2c: Cleanup and improve coverage of file type unit tests (authored by Nick Lewis <nick@puppetlabs.com>).Sep 27 2011, 6:55 PM