This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I wanted to find a way to unit test a "Heavy-Weight" provider, but all the examples I found ended up stubbing out | |
# the chef world to make sure we could verify functionality as well as prevent the provider from converging on the | |
# development machine. | |
# | |
# I started thinking that chefspec already isolates things, and provides a great suite of matchers that we can | |
# use to check on the creation of chef resources inside our heavy provider. This is one approach that allows | |
# testing a single provider method, without a full chef run, in "isolation," with the helpful chefspec matchers. | |
# In my spec_helper |