4 require 'lib/has_many_polymorphs/rake_task_redefine_task'
6 Echoe.new("has_many_polymorphs") do |p|
8 p.summary = "An ActiveRecord plugin for defining self-referential polymorphic associations."
9 p.url = "http://blog.evanweaver.com/pages/code#polymorphs"
10 p.docs_host = "blog.evanweaver.com:~/www/snax/public/files/doc/"
11 p.extra_deps = ["activerecord"]
12 p.rdoc_pattern = /polymorphs\/association|polymorphs\/class_methods|polymorphs\/reflection|README|CHANGELOG|TODO|LICENSE/
15 desc 'Run the test suite.'
16 Rake::Task.redefine_task("test") do
17 puts "Warning! Tests must be run with the plugin installed in a functioning Rails\nenvironment."
18 system "ruby -Ibin:lib:test test/unit/polymorph_test.rb #{ENV['METHOD'] ? "--name=#{ENV['METHOD']}" : ""}"