make better use of the rspec-puppet run matcher

On looking at some function testing with @deanwilson I see that we can make use
of the run matcher for functions instead which results in more natural spec.