require File.join(File.dirname(__FILE__), "spec_helper.rb") require 'rake' require 'spec/rake/spectask' basedir = File.dirname(__FILE__) puppetlibdir = File.join(basedir, "../lib") puppettestlibdir = File.join(basedir, "../test/lib") speclibdir = File.join(basedir, "lib") libs = [puppetlibdir, puppettestlibdir, speclibdir] desc "Run all specs" Spec::Rake::SpecTask.new('all') do |t| t.spec_files = FileList['integration/**/*.rb', 'unit/**/*.rb'] t.libs = libs t.spec_opts = ['--options', 'spec.opts'] end task :default => [:all]