chef-lctp/spec/coobooks/main_spec.rb

24 lines
678 B
Ruby
Raw Normal View History

2014-01-21 22:11:25 +00:00
require_relative '../spec_helper'
describe 'main::head_node' do
let(:chef_run) do
ChefSpec::Runner.new do |node|
end.converge(described_recipe)
end
it "should include cookbooks" do
2014-01-27 10:13:56 +00:00
cookbooks = %w{minitest-handler apt ntp lctp-network lctp-network::router bind dhcp}
cookbooks.each { |cookbook| chef_run.should include_recipe(cookbook) }
2014-01-21 22:11:25 +00:00
end
end
describe 'main::compute_node' do
let(:chef_run) do
ChefSpec::Runner.new do |node|
end.converge(described_recipe)
end
it "should include cookbooks" do
2014-01-27 10:13:56 +00:00
cookbooks = %w{minitest-handler apt ntp lctp-network}
cookbooks.each { |cookbook| chef_run.should include_recipe(cookbook) }
2014-01-21 22:11:25 +00:00
end
end