diff --git a/chefignore b/chefignore new file mode 100644 index 0000000..0379caf --- /dev/null +++ b/chefignore @@ -0,0 +1,56 @@ +# Put files/directories that should be ignored in this file. +# Lines that start with '# ' are comments. + +## OS +.DS_Store +Icon? +nohup.out + +## EDITORS +\#* +.#* +*~ +*.sw[a-z] +*.bak +REVISION +TAGS* +tmtags +*_flymake.* +*_flymake +*.tmproj +.project +.settings +mkmf.log + +## COMPILED +a.out +*.o +*.pyc +*.so + +## OTHER SCM +*/.bzr/* +*/.hg/* +*/.svn/* + +## Don't send rspecs up in cookbook +.watchr +.rspec +spec/* +spec/fixtures/* +features/* + +## SCM +.gitignore + +# Berkshelf +Berksfile +Berksfile.lock +cookbooks/* + +# Vagrant +.vagrant + +# test-kitchen +.kitchen +.kitchen*.yml* diff --git a/test/fixtures/cookbooks/test/recipes/default.rb b/test/fixtures/cookbooks/test/recipes/default.rb index 217d5f9..59c065a 100644 --- a/test/fixtures/cookbooks/test/recipes/default.rb +++ b/test/fixtures/cookbooks/test/recipes/default.rb @@ -1,2 +1,5 @@ # redis is small and installs fast. package 'redis' + +# so is caffeine +homebrew_cask 'caffeine' diff --git a/test/integration/default/serverspec/default_spec.rb b/test/integration/default/serverspec/default_spec.rb index 44444c1..10550af 100644 --- a/test/integration/default/serverspec/default_spec.rb +++ b/test/integration/default/serverspec/default_spec.rb @@ -11,4 +11,10 @@ describe command(%Q[chef-apply -l info -e 'Chef::Log.info(Chef::Platform.find(:mac_os_x, nil)[:package])']) do its(:stdout) { should match('INFO: Chef::Provider::Package::Homebrew') } end + + describe file('/opt/homebrew-cask/Caskroom/caffeine') do + it { should be_directory } + it { should be_mode 755 } + it { should be_owned_by 'vagrant' } + end end