Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (25 sloc) 0.812 kB
0607826 Added rake test task
tsaleh authored
1 require 'rake'
2 require 'rake/testtask'
3 require 'rake/rdoctask'
4
9b6dac2 more refactorings
tsaleh authored
5 # Test::Unit::UI::VERBOSE
6
0607826 Added rake test task
tsaleh authored
7 Rake::TestTask.new do |t|
3a8b77d - completely refactored the test system to use a fake rails_root
tsaleh authored
8 t.libs << 'lib'
6108062 Moved old tests back into place
tsaleh authored
9 t.pattern = 'test/{unit,functional,other}/**/*_test.rb'
9b6dac2 more refactorings
tsaleh authored
10 t.verbose = false
0607826 Added rake test task
tsaleh authored
11 end
12
1ecd029 - documentation
tsaleh authored
13 Rake::RDocTask.new { |rdoc|
14 rdoc.rdoc_dir = 'doc'
e9eba10 documentation and fixes to :through test
tsaleh authored
15 rdoc.title = "Shoulda -- Making tests easy on the fingers and eyes"
1ecd029 - documentation
tsaleh authored
16 rdoc.options << '--line-numbers' << '--inline-source'
17 rdoc.template = "#{ENV['template']}.rb" if ENV['template']
5e42226 fixed order of doc files
Tammer Saleh authored
18 rdoc.rdoc_files.include('README.rdoc', 'CONTRIBUTION_GUIDELINES.rdoc', 'lib/**/*.rb')
1ecd029 - documentation
tsaleh authored
19 }
20
037e9c8 Added task to sync docs to dev.thoughtbot.com
tsaleh authored
21 desc 'Update documentation on website'
22 task :sync_docs => 'rdoc' do
23 `rsync -ave ssh doc/ dev@dev.thoughtbot.com:/home/dev/www/dev.thoughtbot.com/shoulda`
24 end
25
0607826 Added rake test task
tsaleh authored
26 desc 'Default: run tests.'
27 task :default => ['test']
4b39f00 - moved rake tasks to shoulda namespace
tsaleh authored
28
29 Dir['tasks/*.rake'].each do |f|
30 load f
31 end
32
Something went wrong with that request. Please try again.