Sha256: 222c552511f07cc2f91f82d0b955e7f9aef791c2075a5475f706d9ed8a701b23

Contents?: true

Size: 379 Bytes

Versions: 6

Compression:

Stored size: 379 Bytes

Contents

require 'spec_helper'

describe ChefVault::ItemKeys do
  describe '#new' do
    subject(:keys) { ChefVault::ItemKeys.new("foo", "bar") }

    it { should be_an_instance_of ChefVault::ItemKeys }

    its(:data_bag) { should eq "foo" }

    specify { keys["id"].should eq "bar" }

    specify { keys["admins"].should eq [] }

    specify { keys["clients"].should eq [] }
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chef-vault-2.3.0 spec/chef-vault/item_keys_spec.rb
chef-vault-2.2.4 spec/item_keys_spec.rb
chef-vault-2.2.3 spec/item_keys_spec.rb
chef-vault-2.2.2 spec/item_keys_spec.rb
chef-vault-2.2.1 spec/item_keys_spec.rb
chef-vault-2.2.0 spec/item_keys_spec.rb