Sha256: cd825b82ffc7508fdcb822dd1b4aee429a85e0c9c9329a82f6f71ab24bebf13a
Contents?: true
Size: 636 Bytes
Versions: 1
Compression:
Stored size: 636 Bytes
Contents
RSpec.describe ChefVault::Item do subject(:item) { ChefVault::Item.new("foo", "bar") } describe '#new' do it { should be_an_instance_of ChefVault::Item } its(:keys) { should be_an_instance_of ChefVault::ItemKeys } its(:data_bag) { should eq "foo" } specify { expect(item['id']).to eq 'bar' } specify { expect(item.keys['id']).to eq 'bar_keys' } specify { expect(item.keys.data_bag).to eq 'foo' } end describe '#save' do context 'when item["id"] is bar.bar' do let(:item) { ChefVault::Item.new("foo", "bar.bar") } specify { expect { item.save }.to raise_error } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
chef-vault-2.4.0 | spec/chef-vault/item_spec.rb |