# File lib/knife-solo/resources/patch_cookbooks/chef-solo-search/tests/test_data_bags.rb, line 28 def data_bag_item(bag, item) # wrapper around creating a new Recipe instance and calling data_bag on it node = Chef::Node.new() cookbooks = Chef::CookbookCollection.new() run_context = Chef::RunContext.new(node, cookbooks) return Chef::Recipe.new("test_cookbook", "test_recipe", run_context).data_bag_item(bag, item) end