Sha256: c89ac0f3a222a1a27a46768ce39103e2ab7b6a8ac4e3773a3bc2afd4af7716c8
Contents?: true
Size: 760 Bytes
Versions: 4
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' describe ChefVault::Item do describe '#new' do before(:each) do @item = ChefVault::Item.new("foo", "bar") end it 'is an instance of ChefVault::Item' do expect(@item).to be_an_instance_of ChefVault::Item end it 'sets data_bag to foo' do expect(@item.data_bag).to eq "foo" end it 'sets item["id"] to bar' do expect(@item["id"]).to eq "bar" end it 'sets item.keys to ChefVault::ItemKeys' do expect(@item.keys).to be_an_instance_of ChefVault::ItemKeys end it 'sets item.keys.data_bag to foo' do expect(@item.keys.data_bag).to eq "foo" end it 'sets item.keys["id"] to bar_keys' do expect(@item.keys["id"]).to eq "bar_keys" end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
chef-vault-2.1.0 | spec/item_spec.rb |
chef-vault-2.0.2 | spec/item_spec.rb |
chef-vault-2.0.1 | spec/item_spec.rb |
chef-vault-2.0.1.pre | spec/item_spec.rb |