Without this some facts are cached and the unit tests may be biased (I noticed this enabling strict_variables and having some tests that should fail because of missing fact that passed).
Actually the code is not mine, just a copy paste from https://github.com/puppetlabs/puppetlabs-postgresql/blob/master/spec/spec_helper.rb#L9