public
Description: An ActiveRecord plugin for self-referential and double-sided polymorphic associations.
Homepage: http://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/
Clone URL: git://github.com/fauna/has_many_polymorphs.git
stepheneb (author)
Fri Aug 14 14:14:07 -0700 2009
fauna (committer)
Fri Aug 14 16:14:17 -0700 2009
has_many_polymorphs / Rakefile
100644 29 lines (24 sloc) 1.287 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
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://blog.evanweaver.com/files/doc/fauna/has_many_polymorphs/"
  p.docs_host = "blog.evanweaver.com:~/www/bax/public/files/doc/"
  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