diff options
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/rspec.rb | 12 |
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 |