diff options
author | danielsdeleo <dan@getchef.com> | 2015-05-13 17:05:40 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-05-20 15:13:56 -0700 |
commit | 1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e (patch) | |
tree | 9d98fa3d2a9f1b7ffcd49cd1465b8aa3269e6430 /tasks | |
parent | 12a608c962d2eaa6c8b410794530fb104167162c (diff) | |
download | chef-1428270b0f2d0f2ae5d62ecb2aa512ffa7ac773e.tar.gz |
Update rake tasks for componentization
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 |