Issue #15529 has been updated by Josh Cooper.

Project changed from Puppet Labs Modules to Puppet
Category deleted (spec_helper)


----------------------------------------
Bug #15529: puppetlabs_spec_helper: autoload files from installed modules
https://projects.puppetlabs.com/issues/15529#change-78638

Author: Dominic Cleal
Status: Accepted
Priority: Normal
Assignee: 
Category: 
Target version: 
Affected Puppet version: 
Keywords: puppetlabs_spec_helper autoload modules
Branch: 


I'm trying to create a module (domcleal/augeasproviders) containing a provider 
for a type supplied by a second module (puppetlabs/mount_providers).  When the 
mount_providers module is installed locally via `puppet module`, this isn't 
added into RUBYLIB while running specs.  This causes references to 
Puppet::Type.type(:mounttab) from within the spec to return nil.

It appears that the branch in the autoloader checking 
`Puppet.settings.app_defaults_initialized?` (line 136 in master) is returning 
false and so perhaps some further initialisation of Puppet is required?


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" group.
To post to this group, send email to puppet-bugs@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-bugs+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-bugs?hl=en.

Reply via email to