Permalink
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (24 sloc) 689 Bytes
require 'bundler'
gem 'rdoc' # I need to use the installed RDoc gem, not what comes with the system
require 'rake/clean'
require 'rake/testtask'
require 'rdoc/task'
include Rake::DSL
Bundler::GemHelper.install_tasks
desc 'run tests'
Rake::TestTask.new do |t|
t.libs << "lib"
t.libs << "test"
t.ruby_opts << "-rrubygems"
t.test_files = FileList['test/bootstrap.rb','test/test_*.rb']
end
desc 'build rdoc'
RDoc::Task.new do |rd|
rd.main = "README.rdoc"
rd.generator = 'hanna'
rd.rdoc_files.include("README.rdoc","lib/**/*.rb","bin/**/*")
rd.title = 'Test::Unit::Given - make your unit tests clear'
rd.markup = "tomdoc"
end
CLOBBER << 'coverage'
task :default => :test