Summary: How can I best test a library cookbook meant for inclusion from another cookbook?
Details: I am writing a cookbook that contains an LWRP and a minimal default recipe that sets some attributes based on where it is run. However the new resource defined by the LWRP is meant to be used from other cookbooks.
So, for example, the library cookbook defines and implements mylib_example in mylib/resources/example.rb and mylib/providers/example.rb. The "client" cookbook would then, for example, use it from client/recipes/default.rb as
include_recipe 'mylib'
mylib_example "widget1" do
magic_number '42'
end
How do I test that resource usage from the library cookbook itself? I'm not fussed about framework, currently expirementing with Test Kitchen and Chefspec.