Issue with databags on Chef Solo


#1

While working up some chefspec tests today, I ran into an issue while trying to
mock some databags. I am getting a ‘TypeError: can’t convert Array into String
from
C:/apps/Ruby193/lib/ruby/gems/1.9.1/gems/chef-11.10.0-x86-mingw32/lib/chef/data_bag.rb:108:in
`directory?’’

I reviewed
https://github.com/opscode/chef/blob/master/lib/chef/data_bag.rb#L108 and see
its checking unless File.directory?(Chef::Config[:data_bag_path]), however
based on the contents of
https://github.com/opscode/chef/blob/master/lib/chef/config.rb, it feels to me
(a guy not all that skilled in Ruby), that an Array is an acceptable data type,
however the databag loader is expecting a string under Chef solo. Am I reading
this, and is this a bug that I should open a ticket for?