2007-03-14 14:20:37 -04:00
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
|
|
|
|
Rake::TestTask.new do |t|
|
2007-07-14 14:35:51 -04:00
|
|
|
t.libs << 'lib'
|
2007-07-20 15:06:28 -04:00
|
|
|
t.pattern = 'test/{unit,functional,other}/**/*_test.rb'
|
2007-03-14 14:20:37 -04:00
|
|
|
t.verbose = true
|
|
|
|
end
|
|
|
|
|
2007-04-05 15:15:56 -04:00
|
|
|
Rake::RDocTask.new { |rdoc|
|
|
|
|
rdoc.rdoc_dir = 'doc'
|
2007-04-06 10:28:27 -04:00
|
|
|
rdoc.title = "Shoulda -- Making your tests easy on the fingers and eyes"
|
2007-04-05 15:15:56 -04:00
|
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
|
|
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
|
|
|
rdoc.rdoc_files.include('README', 'lib/**/*.rb')
|
|
|
|
}
|
|
|
|
|
2007-03-14 14:20:37 -04:00
|
|
|
desc 'Default: run tests.'
|
|
|
|
task :default => ['test']
|