summaryrefslogtreecommitdiffstats
path: root/test/util/autoload.rb
Commit message (Collapse)AuthorAgeFilesLines
* Ruby no longer clobbers puppet autoloadingLuke Kanies2009-07-161-116/+0
| | | | | | | | | We basically just make sure that we tell Ruby about files we've loaded, so you can 'require' these files and doing so will essentially no-op, rather than clobbering the already-loaded code. Signed-off-by: Luke Kanies <luke@madstop.com>
* Changed tabs to spaces without interfering with indentation or alignmentIan Taylor2009-06-061-1/+1
|
* Adding modulepath caching to the AutoloaderLuke Kanies2009-05-201-30/+1
| | | | | | | | | There's more caching to add, but this simplifies the interface to the list of paths and then caches that list so we aren't constantly searching the filesystem. Signed-off-by: Luke Kanies <luke@madstop.com>
* Fixing comment -- ticket #1027 instead of #1064Luke Kanies2008-02-131-1/+1
|
* Fixing #1064 -- providers et al are now autoloadedLuke Kanies2008-02-131-5/+5
| | | | from modules even when Autoload#loadall is used.
* Fixed #1043 -- autoloading now searches the plugins directoryLuke Kanies2008-02-131-0/+19
| | | | | | in each module, in addition to the lib directory. The 'lib' directory is also deprecated, but supported for now to give people a chance to convert.
* Changing the test/ classes so that they work from the mainLuke Kanies2007-10-261-1/+1
| | | | | | test/ dir or from their own working dir, like the specs do. This was just a question of changing how their libraries are loaded.
* I finally tracked down the problem that was causing providersLuke Kanies2007-10-031-0/+21
| | | | | | | | | | | | to sometimes suddenly disappear and thus tests to fail -- Kernel.require was not loading the normal ruby path (e.g., 'puppet/type/cron'), so if someone else loaded that then it would replace the in-memory type with a new one, but that new one couldn't load its own providers, because the Kernel would ignore the providers, thinking they were already loaded. This doesn't fix all of the autoloading problems, but at least we won't suddenly break a ton of tests.
* *Finally* fixing the tests that were failing around users and groups. The ↵Luke Kanies2007-09-071-26/+1
| | | | problem was that the autoload tests were somehow clearing all loaded classes, including the providers. This is fixed now.
* Changing some of the internals of autoloading so that there is a class-level ↵luke2007-07-101-17/+32
| | | | | | method to query whether a given file has been loaded. git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2668 980ebf18-57e1-0310-9a29-db15c13687c0
* Redoing autoload a bit in preparation for adding a plugindirluke2007-05-161-21/+6
| | | | git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2518 980ebf18-57e1-0310-9a29-db15c13687c0
* Fixing #484. Moving unit tests at the same time.luke2007-02-081-0/+130
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2181 980ebf18-57e1-0310-9a29-db15c13687c0