Sha256: 2ec1356690af61c0c2568049303141c659bb5952aadb33e98ac53fe488f58b70

Contents?: true

Size: 822 Bytes

Versions: 25

Compression:

Stored size: 822 Bytes

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
    # for a complete list of available platforms and versions see:
    # https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md
    platform 'ubuntu', '18.04'

    it 'converges successfully' do
      expect { chef_run }.to_not raise_error
    end
  end

  context 'When all attributes are default, on CentOS 7' do
    # for a complete list of available platforms and versions see:
    # https://github.com/chefspec/fauxhai/blob/master/PLATFORMS.md
    platform 'centos', '7'

    it 'converges successfully' do
      expect { chef_run }.to_not raise_error
    end
  end
end

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
chef-cli-1.0.6 lib/chef-cli/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-4.2.0 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-4.1.7 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-cli-1.0.3 lib/chef-cli/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-4.0.60 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb