Sha256: 53e2055bcd6880384b9e22d4a98ef6373380ab6557eae266ae95ffba3ea1ddc5
Contents?: true
Size: 1.06 KB
Versions: 1
Compression:
Stored size: 1.06 KB
Contents
# # Cookbook:: <%= cookbook_name %> # Spec:: <%= recipe_name %> # <%= license_description('#') %> require 'spec_helper' describe '<%= cookbook_name %>::<%= recipe_name %>' do context 'When all attributes are default, on Ubuntu 18.04' do let(:chef_run) do # for a complete list of available platforms and versions see: # https://github.com/customink/fauxhai/blob/master/PLATFORMS.md runner = ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '18.04') runner.converge(described_recipe) end it 'converges successfully' do expect { chef_run }.to_not raise_error end end context 'When all attributes are default, on CentOS 7.4.1708' do let(:chef_run) do # for a complete list of available platforms and versions see: # https://github.com/customink/fauxhai/blob/master/PLATFORMS.md runner = ChefSpec::ServerRunner.new(platform: 'centos', version: '7.4.1708') runner.converge(described_recipe) end it 'converges successfully' do expect { chef_run }.to_not raise_error end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
galvanize-0.1.2 | lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb |