Class: TestDataBags

Inherits:
Test::Unit::TestCase
  • Object
show all
Defined in:
lib/knife-solo/resources/patch_cookbooks/chef-solo-search/tests/test_data_bags.rb

Instance Method Summary collapse

Instance Method Details

#test_data_bagObject



38
39
40
41
42
# File 'lib/knife-solo/resources/patch_cookbooks/chef-solo-search/tests/test_data_bags.rb', line 38

def test_data_bag
  item = data_bag_item("users", "mike")
  assert_equal item["age"], 42
  assert_equal item[:age], nil    #upstream code for chef-solo does not use mashes
end