Last active
December 25, 2015 17:29
-
-
Save charlesjohnson/7013731 to your computer and use it in GitHub Desktop.
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
source 'https://rubygems.org' | |
gem 'berkshelf', '~> 2.0' | |
gem 'chefspec', '~> 2.0' | |
gem 'foodcritic', '~> 2.2' | |
gem 'rubocop', '~> 0.12' | |
group :integration do | |
gem 'test-kitchen', '~> 1.0.0.beta' | |
gem 'kitchen-vagrant', '~> 0.11' | |
end |
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 'chefspec' | |
describe 'myface::default' do | |
let (:chef_run) { ChefSpec::ChefRunner.new.converge 'myface::default' } | |
# Check to make sure the user is created | |
it 'Creates a service account for the myface daemon' do | |
expect(chef_run).to create_user 'myface' | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
| (• ◡•)|╯╰(❍ᴥ❍ʋ)