Sha256: a75e3b201a47e80293955486f3737b6a35e7b17ccaf92159f828174b83c7fce2
Contents?: true
Size: 690 Bytes
Versions: 8
Compression:
Stored size: 690 Bytes
Contents
require 'spec_helper' module KnifeCookbookDependencies describe Cookbookfile do describe '::read' do after do KCD.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| KCD.shelf.cookbooks.collect(&:name).should include dep end KCD.shelf.populate_cookbooks_directory end end end end
Version data entries
8 entries across 8 versions & 2 rubygems