diff options
author | James Turnbull <james@lovedthanlost.net> | 2008-08-23 22:10:42 +1000 |
---|---|---|
committer | James Turnbull <james@lovedthanlost.net> | 2008-08-23 22:10:42 +1000 |
commit | 557be9d4c5332cc6fde94e1119b8e725ef285234 (patch) | |
tree | 0d44a8f341813cfe8bf5bde97da3c9eeb617218c /Rakefile | |
parent | 0d118a5f22e8f2c9f72b51e8848514d779c09d36 (diff) | |
download | puppet-557be9d4c5332cc6fde94e1119b8e725ef285234.tar.gz puppet-557be9d4c5332cc6fde94e1119b8e725ef285234.tar.xz puppet-557be9d4c5332cc6fde94e1119b8e725ef285234.zip |
Added spec Rake task
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |