nwops / puppet-retrospec

The only tool you need to generate puppet code, tests, modules, facts, types, providers, data and everything else.
https://www.retrospec-puppet.com/
GNU Affero General Public License v3.0
137 stars 27 forks source link

remember all the facts used throughout the module and mark them as used in the tests #4

Open logicminds opened 9 years ago

logicminds commented 9 years ago

Its kind of a pain when writing tests to look through puppet code and find out which facts are being used. We need to remember all the facts used in the puppet code and add that to the let(:facts) block so we can easily mock them later.

In addition to facts we should also include variables at the top scope.