Created
July 25, 2014 11:01
-
-
Save johnfitzpatrick/0d105aa2e19460593743 to your computer and use it in GitHub Desktop.
cookbooks_mailx_spec_unit_default_spec.rb
This file contains hidden or 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 'mailx::default' do | |
context 'on Debian' do | |
let(:chef_run) { ChefSpec::Runner.new({:platform => 'ubuntu', :version => '14.04'}).converge(described_recipe) } | |
it 'should install the correct packages' do | |
expect(chef_run).to install_package 'mailutils' | |
end | |
end | |
context 'on CentOS' do | |
let(:chef_run) { ChefSpec::Runner.new({:platform => 'centos', :version => '6.5'}).converge(described_recipe) } | |
it 'should install the correct packages' do | |
expect(chef_run).to install_package 'mailx' | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment