opscode/chef — pull request #888 by jamesc (2013-07-10 06:24:14+00:00)
Title: OC-7471 - new_resource.cookbook_version is nil for some resources

Since the existing tests mocked out Resource#cookbook_version it missed
the case where if Resource#cookbook_name is nil then cookbook_version would
also be nil.

Added guard logic around setting the cookbook_name, cookbook_version
in resource_reporter.rb to protect against the case where cookbook_name
is nil.