[sdc] update to the current code base
[sdc.git] / sdc-os-chef / sdc-os-common / spec / unit / recipes / default_spec.rb
1 #
2 # Cookbook:: sdc-os-common
3 # Spec:: default
4 #
5 # Copyright:: 2017, The Authors, All Rights Reserved.
6
7 require 'spec_helper'
8
9 describe 'sdc-os-common::default' do
10   context 'When all attributes are default, on an Ubuntu 16.04' do
11     let(:chef_run) do
12       # for a complete list of available platforms and versions see:
13       # https://github.com/customink/fauxhai/blob/master/PLATFORMS.md
14       runner = ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04')
15       runner.converge(described_recipe)
16     end
17
18     it 'converges successfully' do
19       expect { chef_run }.to_not raise_error
20     end
21   end
22 end