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.
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.