summaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-08-23 22:10:42 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-23 22:10:42 +1000
commit557be9d4c5332cc6fde94e1119b8e725ef285234 (patch)
tree0d44a8f341813cfe8bf5bde97da3c9eeb617218c /Rakefile
parent0d118a5f22e8f2c9f72b51e8848514d779c09d36 (diff)
downloadpuppet-557be9d4c5332cc6fde94e1119b8e725ef285234.tar.gz
puppet-557be9d4c5332cc6fde94e1119b8e725ef285234.tar.xz
puppet-557be9d4c5332cc6fde94e1119b8e725ef285234.zip
Added spec Rake task
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 4775986bb..e35368a53 100644
--- a/Rakefile
+++ b/Rakefile
@@ -144,3 +144,15 @@ task :tracdocs do
sh "puppetdoc -m trac -r #{ref.to_s}"
end
end
+
+desc "Run the specs under spec/"
+task :spec do
+ require 'spec'
+ require 'spec/rake/spectask'
+ require 'rcov'
+ Spec::Rake::SpecTask.new do |t|
+ # t.rcov = true
+ t.spec_opts = ['--options', "spec/spec.opts"]
+ t.spec_files = FileList['spec/**/*.rb']
+ end
+end