Sha256: a9fe3f00c5b04ff193e889090e1b1420a06eca251a6c7f255da9637177f89d6a
Contents?: true
Size: 741 Bytes
Versions: 2
Compression:
Stored size: 741 Bytes
Contents
RSpec.describe ChefVault do subject(:vault) { ChefVault.new('foo') } describe '#new' do context 'with only a vault parameter specified' do it { should be_an_instance_of ChefVault } its(:vault) { should eq "foo" } end context 'with a vault and config file parameter specified' do before do allow(IO).to receive(:read).with('knife.rb').and_return("node_name 'bar'") end let(:vault) { ChefVault.new('foo', 'knife.rb') } it { should be_an_instance_of ChefVault } its(:vault) { should eq "foo" } specify { expect { Chef::Config[:node_name].should eq "bar" } } end describe '#version' do its(:version) { should eq ChefVault::VERSION } end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
chef-vault-2.6.0 | spec/chef-vault_spec.rb |
chef-vault-2.5.0 | spec/chef-vault_spec.rb |