Created
December 14, 2016 01:01
-
-
Save nandotorres/d2d5173a3c0d0d71e34d268107c94c27 to your computer and use it in GitHub Desktop.
Configure ChefSolo and specify platform on default_spec.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe 'cookbook::default' do | |
context 'When applying cookbooks on an Ubuntu instance' do | |
let(:chef_run) do | |
runner = ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '16.04') | |
runner.converge(described_recipe) | |
end | |
it 'converges successfully' do | |
expect { chef_run }.to_not raise_error | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment