summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorRein Henrichs <reinh@reinh.com>2010-03-18 14:37:49 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit7403c6e34270c01bb342c128fb88064c257467fe (patch)
tree69f903d5050711a5012bf752aea58db5a5c739c0 /Rakefile
parentde94f68a9e30379738722df3c52fc6bb7b056510 (diff)
downloadpuppet-7403c6e34270c01bb342c128fb88064c257467fe.tar.gz
puppet-7403c6e34270c01bb342c128fb88064c257467fe.tar.xz
puppet-7403c6e34270c01bb342c128fb88064c257467fe.zip
[#3392] Better Rakefile, remove puppetmasterd spec
- Minor improvements to Rakefile spec task - Remove puppetmasterd spec, to be run as part of the testing matrix
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile24
1 files changed, 6 insertions, 18 deletions
diff --git a/Rakefile b/Rakefile
index 791d744e0..193ba77d3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -7,6 +7,8 @@ require './lib/puppet.rb'
require 'rake'
require 'rake/packagetask'
require 'rake/gempackagetask'
+require 'spec'
+require 'spec/rake/spectask'
Dir['tasks/**/*.rake'].each { |t| load t }
@@ -38,24 +40,10 @@ end
desc "Create the tarball and the gem - use when releasing"
task :puppetpackages => [:create_gem, :package]
-desc "Run the specs under spec/"
-task :spec do
- require 'spec'
- require 'spec/rake/spectask'
- begin
-# require 'rcov'
- rescue LoadError
- end
-
- Spec::Rake::SpecTask.new do |t|
- t.spec_opts = ['--format','s', '--loadby','mtime']
- t.spec_files = FileList['spec/**/*.rb']
- t.fail_on_error = false
- if defined?(Rcov)
- t.rcov = true
- t.rcov_opts = ['--exclude', 'spec/*,test/*,results/*,/usr/lib/*,/usr/local/lib/*']
- end
- end
+Spec::Rake::SpecTask.new do |t|
+ t.spec_opts = ['--format','s', '--loadby','mtime']
+ t.pattern ='spec/{unit,integation}/**/*.rb'
+ t.fail_on_error = false
end
desc "Run the unit tests"