summaryrefslogtreecommitdiff
path: root/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'tasks')
-rw-r--r--tasks/rspec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/tasks/rspec.rb b/tasks/rspec.rb
index d45e6bc2df..18af440e81 100644
--- a/tasks/rspec.rb
+++ b/tasks/rspec.rb
@@ -25,8 +25,20 @@ CHEF_ROOT = File.join(File.dirname(__FILE__), "..")
begin
require 'rspec/core/rake_task'
+
+ desc "Run specs for Chef's Components"
+ task :component_specs do
+ Dir.chdir("chef-config") do
+ Bundler.with_clean_env do
+ sh("bundle exec rake spec")
+ end
+ end
+ end
+
task :default => :spec
+ task :spec => :component_specs
+
desc "Run standard specs (minus long running specs)"
RSpec::Core::RakeTask.new(:spec) do |t|
# right now this just limits to functional + unit, but could also remove