Commit 9d30e94

mo khan <mo@mokhan.ca>
2015-05-03 19:12:15
require chefspec/berkshelf to resolve dependencies on other cookbooks.
1 parent 9e2a1e6
spec/capistrano_spec.rb
@@ -3,7 +3,6 @@ describe 'mokhan-myface::capistrano' do
     ChefSpec::SoloRunner.new do |node|
       node.set['capistrano']['root_path'] = root_path
       node.set['capistrano']['username'] = username
-      #node.set['capistrano']['env'] = environment_variables
     end.converge(described_recipe)
   end
   let(:root_path) { "/var/www/#{FFaker::Internet.domain_name}"  }
spec/spec_helper.rb
@@ -12,6 +12,7 @@
 # the additional setup, and require it from the spec files that actually need
 # it.
 require 'chefspec'
+require 'chefspec/berkshelf'
 require 'ffaker'
 
 # The `.rspec` file also contains a few flags that are not defaults but that