summaryrefslogtreecommitdiff
path: root/tasks/rspec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/rspec.rb')
-rw-r--r--tasks/rspec.rb14
1 files changed, 8 insertions, 6 deletions
diff --git a/tasks/rspec.rb b/tasks/rspec.rb
index afd7d12705..61e7b551b9 100644
--- a/tasks/rspec.rb
+++ b/tasks/rspec.rb
@@ -1,7 +1,7 @@
#
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Daniel DeLeo (<dan@chef.io>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
+# Copyright:: Copyright 2008-2018, Chef Software Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -25,12 +25,14 @@ CHEF_ROOT = File.join(File.dirname(__FILE__), "..")
begin
require "rspec/core/rake_task"
- desc "Run specs for Chef's Components (chef-config)"
+ desc "Run specs for Chef's Components"
task :component_specs do
- Dir.chdir("chef-config") do
- Bundler.with_clean_env do
- sh("bundle install")
- sh("bundle exec rake spec")
+ %w{chef-helpers chef-config}.each do |gem|
+ Dir.chdir(gem) do
+ Bundler.with_clean_env do
+ sh("bundle install")
+ sh("bundle exec rake spec")
+ end
end
end
end