2009-08-06 18:22:10 -04:00
|
|
|
require "rubygems"
|
2007-12-30 14:35:44 -05:00
|
|
|
|
2009-09-20 12:12:55 -04:00
|
|
|
begin
|
|
|
|
require "spec/rake/spectask"
|
|
|
|
rescue LoadError
|
|
|
|
desc "Run specs"
|
|
|
|
task(:spec) { $stderr.puts '`gem install rspec` to run specs' }
|
|
|
|
else
|
2010-09-24 19:29:47 -04:00
|
|
|
Spec::Rake::SpecTask.new do |t|
|
|
|
|
t.spec_opts = ['--options', "\"#{File.dirname(__FILE__)}/spec/spec.opts\""]
|
|
|
|
t.libs << "spec"
|
|
|
|
t.warning = true
|
|
|
|
t.spec_files = FileList['spec/**/*_spec.rb']
|
2009-05-16 21:13:32 -04:00
|
|
|
end
|
|
|
|
|
2009-09-20 12:12:55 -04:00
|
|
|
desc "Default task is to run specs"
|
|
|
|
task :default => :spec
|
|
|
|
end
|