Displaying 1 result from an estimated 1 matches for "getvar_spec".
Did you mean:
getargspec
2012 Apr 11
8
Facter not initialized in rspec in puppetlabs-stdlib?
...based smoketests,
but I am running into trouble that may or may not be due to my ignorance
about rspec or Facter. Something needs to be done to initialize Facter
because lookupvar(''interfaces'') just returns :undefined. I have not found
any examples in the existing rspec tests; getvar_spec.rb seems like it
should have something but the tests it does are pretty basic.
You can see some of what I''ve been trying at
https://github.com/wcooley/puppetlabs-stdlib/blob/master/spec/unit/puppet/parser/functions/has_interface_with_spec.rb
Is there something obvious I''m miss...