public
Rubygem
Fork of thoughtbot/shoulda
Description: Makes tests easy on the fingers and the eyes
Homepage: http://www.thoughtbot.com/projects/shoulda
Clone URL: git://github.com/technicalpickles/shoulda.git
tsaleh (author)
Mon Mar 17 07:03:11 -0700 2008
commit  4ae2cea03674f2d0614a04a55398a68d5fe1dac1
tree    4d9e2d673331fcf47241e635724a3aa75af4e1fe
parent  53b1bb818a7a251e598241a0441d98fd45469910
shoulda / Rakefile
100644 33 lines (25 sloc) 0.775 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
 
# Test::Unit::UI::VERBOSE
 
Rake::TestTask.new do |t|
  t.libs << 'lib'
  t.pattern = 'test/{unit,functional,other}/**/*_test.rb'
  t.verbose = false
end
 
Rake::RDocTask.new { |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.title = "Shoulda -- Making tests easy on the fingers and eyes"
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.template = "#{ENV['template']}.rb" if ENV['template']
  rdoc.rdoc_files.include('README', 'lib/**/*.rb')
}
 
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
 
desc 'Default: run tests.'
task :default => ['test']
 
Dir['tasks/*.rake'].each do |f|
  load f
end