I have cookbooks that run shell commands (via
blocks), which ChefSpec predictably complains need to be stubbed. These
cookbooks are included in many places, and I wind up copy/pasting a stub
before block in the tests of many other cookbooks that include the
offending cookbook even as a dependency of a dependency of a dependency.
Can I somehow stub these shell commands right in the cookbook that issues
them, such that ChefSpec tests for any other cookbook will pick up the