puppetlabs/puppetlabs_spec_helper — pull request #24 by hunner (2012-11-09 21:38:20+00:00)
Title: Only remove the site.pp if it is empty

The rspec-puppet documentation mentions than any node definitions for node tests should be placed in spec/fixtures/manifests/site.pp, but this file is uncontitionally removed by `rake spec_clean`. This commit changes that behaviour to only remove site.pp if it is empty.