Test-kitchen cookbook names

FYI -

I happen to have my cookbooks checked in under a cookbook- namespace in git. These
cookbooks are then submodueled into the main repo via their real name.

I was attempting to run test-kitchen on such cookbooks, however, I ran into the following problem.

[Sun, 19 Aug 2012 20:39:45 +0000] DEBUG: Re-raising exception: Chef::Exceptions::CookbookNotFound - remote_directory[/etc/chef/ohai_plugins] (cookbook-ohai::default line 28) had an error: Chef::Exceptions::CookbookNotFound: Cookbook ohai not found. If you’re loading ohai from another cookbook, make sure you configure the dependency in your metadata
/opt/chef/embedded/lib/ruby/gems/1.9.1/gems/chef-10.12.0/lib/chef/cookbook/cookbook_collection.rb:38:in `block in initialize’

I ended up modifying the Kitchenfile changing

cookbook “cookbook-ohai”

to

cookbook “ohai”

This fixed the problem. Is this a reasonable fix?

John