opscode/test-kitchen — pull request #5 by brendanhay (2012-09-09 09:31:53+00:00)
Title: KITCHEN-22 - Include Databags in Vagrant Configuration if present

Adds `#data_bags_path` to the cookbook environment with a default value of `/test/kitchen/data_bags`.

It can be overridden in the cookbook block, ala:

```ruby
cookbook("something") do
data_bags_path("/some/different/path")
end
```

If this value is not nil, and the directory exists, it will be written into the provisioner section in the Vagrantfile:

```ruby
vm_config.vm.provision :chef_solo do |chef|
chef.data_bags_path = project.data_bags_path # snip ..
end
```

The idea being that you can use test specific data bags in the default path, or you can alternatively set it directly to your site-data_bags path.