public
Description: Rails plugin that provides the ability to soft delete models
Clone URL: git://github.com/ajh/acts_as_soft_deletable.git
100644 33 lines (26 sloc) 0.875 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 'rubygems'
require 'rake/testtask'
require 'rake/rdoctask'
 
namespace :test do
  %w(sqlite sqlite3 postgresql mysql).each do |adapter|
 
    desc "Test the plugin with #{adapter}"
    Rake::TestTask.new(adapter) do |t|
      t.libs << "test/connections/#{adapter}"
      t.pattern = 'test/**/test_*.rb'
      t.verbose = true
    end
 
  end
end
 
desc 'Test the plugin for all databases'
task :test => ["test:sqlite", "test:sqlite3", "test:postgresql", "test:mysql"]
 
desc 'Default: run unit tests'
task :default => :test
 
Rake::RDocTask.new("doc") do |rdoc|
  rdoc.rdoc_dir = 'doc'
  rdoc.template = ENV['template'] if ENV['template']
  rdoc.title = "Acts As Soft Deletable Documentation"
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.options << '--charset' << 'utf-8'
  rdoc.rdoc_files.include('lib/*.rb')
  rdoc.rdoc_files.include('README')
end