summaryrefslogtreecommitdiff
path: root/spec/unit/file_system/uniquefile_spec.rb
AgeCommit message (Collapse)AuthorFilesLines
2014-08-19(PUP-3030) confine uniquefile unlink testsChris Price1-20/+24
Two of the new tests re: Uniquefile are not compatible with windows. (In the ruby source tree, they are skipped on windows.) This commit confines them to only run on unix.
2014-08-18(PUP-3030) Add Uniquefile tests, ported from Ruby sourceChris Price1-0/+132
This commit adds additional tests for the Uniquefile class. The new tests are ported from the Ruby 1.9.3 source code for the built-in `Tempfile` class, since that is what our `Uniquefile` implementation is based on. See: https://github.com/ruby/ruby/blob/v1_9_3_547/test/test_tempfile.rb
2014-08-18(PUP-3030) Rename P::F::Tempfile to UniquefileChris Price1-0/+48
Since the new implementation of Puppet::FileSystem::Tempfile is not trying to manage the deletion of files created through it, the name was misleading. This commit simply changes the name to Uniquefile to try to make it a bit more obvious that it is not responsible for deleting the files.