calavera/rspec-chef — pull request #5 by chrisa (2012-06-13 09:25:12+00:00)
Title: Load LWRPs belonging to cookbooks under test

Hi,

I found that rspec-chef didn't load cookbooks in such a way that their LWRPs were available when testing. I've fixed that by having the run_context load an ad hoc run list containing only the cookbook under test. In my testing, this fixes the problem.

Separately, I also exposed the Chef log_level into RSpec configuration, and enabled use of should_not to assert that a particular resource hasn't been created by a recipe.

I hope you'll consider these changes for a future release.

Thanks!