glarizza/hiera-puppet — comment on commit 0f82f550fb9f3afe3666625782f1acec5d94a23e
File:  line 0
By glarizza:

I'm saying that every OTHER test is going to want to expect that File.exist? is going to be called - this will be the only one that doesn't (because it fails early before anything is loaded). So instead of repeating those two File.expects(:exist?) lines in EVERY test, just keep it in the before :each do block and split this single test out. It would make for cleaner tests, in my opinion.