Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 33 lines (26 sloc) 0.875 kB
42758de add plugin to source control
(no author) authored
1 require 'rubygems'
2 require 'rake/testtask'
2171bff @ajh Improve rdoc support.
authored
3 require 'rake/rdoctask'
42758de add plugin to source control
(no author) authored
4
d95a3fa have rake be able to run tests against all databases. Use conneciton …
(no author) authored
5 namespace :test do
6 %w(sqlite sqlite3 postgresql mysql).each do |adapter|
7
8 desc "Test the plugin with #{adapter}"
9 Rake::TestTask.new(adapter) do |t|
10 t.libs << "test/connections/#{adapter}"
cc62875 make even more friendly to autotest
(no author) authored
11 t.pattern = 'test/**/test_*.rb'
d95a3fa have rake be able to run tests against all databases. Use conneciton …
(no author) authored
12 t.verbose = true
13 end
42758de add plugin to source control
(no author) authored
14
d95a3fa have rake be able to run tests against all databases. Use conneciton …
(no author) authored
15 end
42758de add plugin to source control
(no author) authored
16 end
17
d95a3fa have rake be able to run tests against all databases. Use conneciton …
(no author) authored
18 desc 'Test the plugin for all databases'
19 task :test => ["test:sqlite", "test:sqlite3", "test:postgresql", "test:mysql"]
20
21 desc 'Default: run unit tests'
22 task :default => :test
23
2171bff @ajh Improve rdoc support.
authored
24 Rake::RDocTask.new("doc") do |rdoc|
25 rdoc.rdoc_dir = 'doc'
26 rdoc.template = ENV['template'] if ENV['template']
27 rdoc.title = "Acts As Soft Deletable Documentation"
28 rdoc.options << '--line-numbers' << '--inline-source'
29 rdoc.options << '--charset' << 'utf-8'
30 rdoc.rdoc_files.include('lib/*.rb')
31 rdoc.rdoc_files.include('README')
32 end
Something went wrong with that request. Please try again.