Sha256: 582f896a575912565fa0985f615db12bfd1a2e2eb56dd09379be0ae728df321e
Contents?: true
Size: 793 Bytes
Versions: 2
Compression:
Stored size: 793 Bytes
Contents
require_relative '../spec_helper' require_relative '../../lib/rapid-vaults/binding' describe Binding do context '.puppet' do after(:all) do %w[puppet_gpg_decrypt.rb puppet_gpg_encrypt.rb puppet_ssl_decrypt.rb puppet_ssl_encrypt.rb].each { |file| File.delete(file) } end it 'outputs the puppet bindings to the specified directory' do Binding.puppet({}) %w[puppet_gpg_decrypt.rb puppet_gpg_encrypt.rb puppet_ssl_decrypt.rb puppet_ssl_encrypt.rb].each do |file| expect(File.file?(file)).to be true end end end context '.chef' do after(:all) do File.delete('chef.rb') end it 'outputs the chef bindings to the specified directory' do Binding.chef({}) expect(File.file?('chef.rb')).to be true end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rapid-vaults-1.2.0 | spec/rapid-vaults/binding_spec.rb |
rapid-vaults-1.1.2 | spec/rapid-vaults/binding_spec.rb |