summaryrefslogtreecommitdiffstats
path: root/spec/unit/util/storage.rb
Commit message (Collapse)AuthorAgeFilesLines
* [#3994] rename the specs to have _spec.rb at the endMarkus Roberts2010-06-231-235/+0
| | | | | | | | | Some spec files like active_record.rb had names that would confuse the load path and get loaded instead of the intended implentation when the spec was run from the same directory as the file. Author: Matt Robinson <matt@puppetlabs.com> Date: Fri Jun 11 15:29:33 2010 -0700
* Working #3139 - removing obsolete checking in StorageLuke Kanies2010-02-171-19/+5
| | | | | | | | | We were type-checking the use of Storage for no good reason. I've removed all of that, so we can use either resources or their Refs for caching. Signed-off-by: Luke Kanies <luke@puppetlabs.com>
* Adapt Util::Storage specs and avoid trying to lock on directoriesDavid Schmitt2010-02-171-5/+6
|
* Minimal patch to fix #2290 (/tmp permissions)Markus Roberts2009-07-311-0/+4
| | | | | | | | | | | | | | | | | This patch rectifies the specified problem by resetting the permissions to 1777 after the offending tests have run. I am providing it for testing but suspect there may be a deeper bug hiding behind this one--specifically, it isn't clear to me that an analogous problem could not occur in production use (which this patch to the spec would not fix). This patch also fixes the specific test isolation failure which was causing ticket #2290; if spec/unit/util/storage.rb was run by "rake spec" before spec/integration/network/server/webrick.rb without any intervening tests which did a Puppet.settings.clear, the the webrick test would change the permissions on /tmp. Signed-off-by: Markus Roberts <Markus@reality.com>
* Removed extra whitespace from end of linesIan Taylor2009-06-061-5/+5
|
* Merge branch '0.24.x'James Turnbull2008-12-271-2/+2
|\ | | | | | | | | Conflicts: CHANGELOG
| * Preparing to fix #1812 - Moving locking code to a moduleLuke Kanies2008-12-121-2/+2
| | | | | | | | | | | | | | This moves the locking code out of Puppet::Util into a separate module, to make the code cleaner. Signed-off-by: Luke Kanies <luke@madstop.com>
| * Removing the included testing gems; you must now install them yourself.Luke Kanies2008-11-251-0/+4
| | | | | | | | | | | | Everything passes, but autotest doesn't include color. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating the Puppet::Type.create.Luke Kanies2008-12-181-2/+2
| | | | | | | | | | | | | | This method is no longer necessary; you can use the normal 'new' class method. Signed-off-by: Luke Kanies <luke@madstop.com>
* | Deprecating 'Puppet.type'; replacing all instances with Puppet::Type.typeLuke Kanies2008-12-181-2/+2
|/ | | | Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing tests that are broken when running as root under OSX 10.5Paul Lathrop2008-05-231-2/+5
|
* Fixed a bug in my tests which caused them to fail when run against the ↵Paul Lathrop2008-05-231-0/+4
| | | | master branch.
* Minor cosmetic changes to cleanup some style elements and get rid of some cruft.Paul Lathrop2008-05-181-22/+23
|
* Another refactor based on feedback from Luke. This includes adding an ↵Paul Lathrop2008-05-181-19/+23
| | | | accessor for @@state to make testing a bit cleaner.
* Refactored tests based on feedback from Luke.Paul Lathrop2008-05-171-176/+169
|
* Rewritten tests for Puppet::Util::Storage.Paul Lathrop2008-05-171-44/+211
|
* Add unit tests for Puppet::Util::StoragePaul Lathrop2008-05-171-0/+72