summaryrefslogtreecommitdiff
path: root/lib/chef
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-11-17 16:53:27 -0800
committerJohn Keiser <john@johnkeiser.com>2015-11-17 17:40:10 -0800
commit0e9c4382e9d58fbcf53ed67043b8de0bda01da21 (patch)
treebdd497b96313d40eeb92e0dfc8d33fdb5cba82c2 /lib/chef
parent2d786b751c2a35902fdc7611249d02f42829455c (diff)
downloadchef-0e9c4382e9d58fbcf53ed67043b8de0bda01da21.tar.gz
Restore rspec 3.4 by setting project_source_dirsjk/rspec-3.4
to be the cookbooks (see http://rspec.info/blog/2015/11/rspec-3-4-has-been-released/, Better Failure Source Detection, for more info)
Diffstat (limited to 'lib/chef')
-rw-r--r--lib/chef/audit/runner.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/audit/runner.rb b/lib/chef/audit/runner.rb
index 234d83ab8f..a3bf0b6898 100644
--- a/lib/chef/audit/runner.rb
+++ b/lib/chef/audit/runner.rb
@@ -106,6 +106,7 @@ class Chef
RSpec.configure do |c|
c.color = Chef::Config[:color]
c.expose_dsl_globally = false
+ c.project_source_dirs = Array(Chef::Config[:cookbook_path])
c.backtrace_exclusion_patterns << exclusion_pattern
end
end