Hi there,I'm hoping that someone could help me.I'm testing a Chef recipe with ChefSpec 3.2 and Chef 11.6. However when I run my test recipe, I have the following errors:-All examples were filtered out; ignoring {:focus=>true}[2015-04-27T13:20:24+01:00] WARN: found a directory files in the cookbook path, but it contains no cookbook files. skipping.[2015-04-27T13:20:24+01:00] WARN: found a directory test in the cookbook path, but it contains no cookbook files. skipping.FFailures:1) gg-ops-dashing::install installs ruby 1.9.3 packageFailure/Error: let(:chef_run) { runner.converge 'gg-ops-dashing::install' }Chef::Exceptions::CookbookNotFound:Cookbook gg-ops-dashing not found. If you're loading gg-ops-dashing from another cookbook, make sure you configure the dependency in your metadata# ./spec/install_spec.rb:13:in `block (2 levels) in <top (required)>'# ./spec/install_spec.rb:17:in `block (2 levels) in <top (required)>'Finished in 0.27571 seconds1 example, 1 failurerequire 'spec_helper'require 'chefspec'#install_spec.rbdescribe 'gg-ops-dashing::install' dolet(:runner) docookbook_paths = %W(#{File.expand_path(Dir.pwd)} #{File.expand_path("..", Dir.pwd)})ChefSpec::Runner.new({cookbook_path: cookbook_paths})endlet(:chef_run) { runner.converge 'gg-ops-dashing::install' }it 'installs ruby 1.9.3 package' doexpect(chef_run).to install_package('ruby1.9.3')endendCan someone please tell me where I'm going wrong?Thanks,AngelaSent from iCloud
Archive powered by MHonArc 2.6.16.