summaryrefslogtreecommitdiffstats
path: root/spec/Rakefile
blob: e2996f64f11ee59129ad6107703ab59dc31e69df (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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]