diff options
author | Bryan McLellan <btm@opscode.com> | 2011-10-10 08:30:51 -0700 |
---|---|---|
committer | Bryan McLellan <btm@opscode.com> | 2011-10-10 08:30:58 -0700 |
commit | 6e6dce12fa1eae5d22e9e38f05d764adc397ce61 (patch) | |
tree | 10c8812c88b984ed2cd2f9cebcfa7a50ae59a59d /chef-expander | |
parent | 1eaa0190f62dfc7b398b7633b472bfb89eb3b5aa (diff) | |
download | chef-6e6dce12fa1eae5d22e9e38f05d764adc397ce61.tar.gz |
leech off of chefs rspec tasks
Diffstat (limited to 'chef-expander')
-rw-r--r-- | chef-expander/Rakefile | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/chef-expander/Rakefile b/chef-expander/Rakefile index cc654a07af..c8c772ed39 100644 --- a/chef-expander/Rakefile +++ b/chef-expander/Rakefile @@ -20,6 +20,7 @@ $: << File.dirname(__FILE__) require 'lib/chef/expander/version' require 'rake/gempackagetask' require 'rake/rdoctask' +require '../chef/tasks/rspec.rb' spec = eval(File.read("chef-expander.gemspec")) @@ -46,22 +47,6 @@ task :install => :package do sh %{gem install pkg/chef-expander-#{Chef::Expander::VERSION} --no-rdoc --no-ri} end -begin - require 'spec/rake/spectask' - - Spec::Rake::SpecTask.new(:spec) do |spec| - spec.libs << 'lib' << 'spec' - spec.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""] - spec.spec_files = FileList['spec/**/*_spec.rb'] - end -rescue LoadError - desc "Rspec is not installed. `(sudo) gem install rspec` to run tests" - task :spec do - puts "Rspec is not installed. `(sudo) gem install rspec` to run tests" - exit 1 - end -end - desc "install gem dependencies" task :bundle do sh("bundle install") |