Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 5b7d107c05
Fetching contributors…

Cannot retrieve contributors at this time

file 32 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
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
Something went wrong with that request. Please try again.