ChefSpec & Other Cookbook Libraries


#1

If we have a cookbook that does an “include” in it’s library from dependent cookbooks library file, how do you get chef spec to load the dependencies in correct order?

I continue to get uninitialized constant errors because the libraries referenced have not been loaded yet.

Thoughts?


#2

Does your metadata.rb reflect the dependencies?

I use Berkshelf to marshall cookbooks into a tmp/ dir and run ChefSpec
on them there.

On Mon, Jul 22, 2013 at 4:03 PM, Moser, Kevin Kevin.Moser@nordstrom.com wrote:

If we have a cookbook that does an “include” in it’s library from dependent cookbooks library file, how do you get chef spec to load the dependencies in correct order?

I continue to get uninitialized constant errors because the libraries referenced have not been loaded yet.

Thoughts?