2007-03-14 18:20:37 +00:00
|
|
|
require 'rake'
|
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rake/rdoctask'
|
|
|
|
|
2007-07-22 03:54:36 +00:00
|
|
|
# Test::Unit::UI::VERBOSE
|
|
|
|
|
2007-03-14 18:20:37 +00:00
|
|
|
Rake::TestTask.new do |t|
|
2007-07-14 18:35:51 +00:00
|
|
|
t.libs << 'lib'
|
2007-07-20 19:06:28 +00:00
|
|
|
t.pattern = 'test/{unit,functional,other}/**/*_test.rb'
|
2007-07-22 03:54:36 +00:00
|
|
|
t.verbose = false
|
2007-03-14 18:20:37 +00:00
|
|
|
end
|
|
|
|
|
2007-04-05 19:15:56 +00:00
|
|
|
Rake::RDocTask.new { |rdoc|
|
|
|
|
rdoc.rdoc_dir = 'doc'
|
2007-08-07 14:44:59 +00:00
|
|
|
rdoc.title = "Shoulda -- Making tests easy on the fingers and eyes"
|
2007-04-05 19:15:56 +00:00
|
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
|
|
rdoc.template = "#{ENV['template']}.rb" if ENV['template']
|
|
|
|
rdoc.rdoc_files.include('README', 'lib/**/*.rb')
|
|
|
|
}
|
|
|
|
|
2007-07-24 20:45:07 +00:00
|
|
|
desc 'Update documentation on website'
|
|
|
|
task :sync_docs => 'rdoc' do
|
|
|
|
`rsync -ave ssh doc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/shoulda`
|
|
|
|
end
|
|
|
|
|
2007-03-14 18:20:37 +00:00
|
|
|
desc 'Default: run tests.'
|
|
|
|
task :default => ['test']
|
2007-11-08 21:45:27 +00:00
|
|
|
|
|
|
|
Dir['tasks/*.rake'].each do |f|
|
|
|
|
load f
|
|
|
|
end
|
|
|
|
|