mongo-ruby-driver/Rakefile

16 lines
354 B
Ruby

require 'fileutils'
require 'rake/testtask'
task :default => [:test]
# NOTE: some of the tests assume Mongo is running
Rake::TestTask.new do |t|
t.test_files = FileList['tests/test*.rb']
end
desc "Generate documentation"
task :rdoc do
FileUtils.rm_rf('doc')
system "rdoc --main README --inline-source --quiet README `find lib -name '*.rb'`"
end