Sha256: c4ef66a1567782660d568b358933b1b9e40050715545753e59c64c51a9040a1e
Contents?: true
Size: 756 Bytes
Versions: 3
Compression:
Stored size: 756 Bytes
Contents
require 'spec_helper' module KnifeCookbookDependencies describe Cookbookfile do describe '::read' do after do KnifeCookbookDependencies.shelf.cookbooks.each(&:clean) end it "should read the cookbookfile and build a dependency list" do described_class.read <<COOKBOOKFILE cookbook 'ntp', '<= 1.0.0' cookbook 'mysql' cookbook 'nginx', '< 0.101.2' cookbook 'ssh_known_hosts2', :git => 'https://github.com/erikh/chef-ssh_known_hosts2.git' COOKBOOKFILE ['ntp', 'mysql', 'nginx', 'ssh_known_hosts2'].each do |dep| KnifeCookbookDependencies.shelf.cookbooks.collect(&:name).should include dep end KnifeCookbookDependencies.shelf.populate_cookbooks_directory end end end end
Version data entries
3 entries across 3 versions & 1 rubygems