Sha256: 23878f4c3c3fabd6306315072d61b52325e4a410e2122515786a4bce5267e591

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 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 16.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: '16.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

9 entries across 9 versions & 1 rubygems

Version Path
chef-dk-3.9.0 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.8.14 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.7.23 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.6.57 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.5.13 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.4.38 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.3.23 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.2.30 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb
chef-dk-3.1.0 lib/chef-dk/skeletons/code_generator/templates/default/recipe_spec.rb.erb