Closed knowshan closed 12 years ago
Multiple 'facts' should be specified as a hash in one block as follows:
let (:facts) {{:operatingsystem => 'CentOS', :rubyversion => '1.8.7'}}
This fixes the aforementioned error where :facts were getting overwritten.
I am trying to write rspec tests for this Puppet module. I started with rspec-puppet setup guide and wrote a simple test to check a file resource - sha: 625b268f1f0057217c6a101a323ec489b8ad872a.
The test is failing with following error:
The params class which is inherited by the onedconf class uses facter values to set couple of variables. The error seems to be because of an undefined facter parameter/value. Not sure of all the details though.