Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
29 lines (24 sloc) 1.21 KB
require 'echoe'
Echoe.new("has_many_polymorphs") do |p|
p.project = "fauna"
p.summary = "An ActiveRecord plugin for self-referential and double-sided polymorphic associations."
p.url = "http://github.com/evan/has_many_polymorphs/"
p.docs_host = "evan.github.com/fauna/"
p.dependencies = ["activerecord"]
p.rdoc_pattern = /polymorphs\/association|polymorphs\/class_methods|polymorphs\/reflection|polymorphs\/autoload|polymorphs\/configuration|README|CHANGELOG|TODO|LICENSE|templates\/migration\.rb|templates\/tag\.rb|templates\/tagging\.rb|templates\/tagging_extensions\.rb/
p.require_signed = true
p.clean_pattern += ["**/ruby_sess*", "**/generated_models/**"]
p.test_pattern = ["test/unit/*_test.rb", "test/integration/*_test.rb", "test/generator/*_test.rb"]
end
desc "Run all the tests for every database adapter"
task "test_all" do
['mysql', 'postgresql', 'sqlite3'].each do |adapter|
ENV['DB'] = adapter
ENV['PRODUCTION'] = nil
STDERR.puts "#{'='*80}\nDevelopment mode for #{adapter}\n#{'='*80}"
system("rake test:multi_rails:all")
ENV['PRODUCTION'] = '1'
STDERR.puts "#{'='*80}\nProduction mode for #{adapter}\n#{'='*80}"
system("rake test:multi_rails:all")
end
end