begin require 'lib/ptk' PTK_PATH = File.dirname(__FILE__) rescue LoadError require 'plugin_test_kit/lib/ptk' PTK_PATH = File.join(File.dirname(__FILE__), '..', 'lib', 'ptk') end namespace :plugin_test_kit do desc "Decouple all libraries in the Plugin Test Kit" task :all => [:gems, :helpers] do # copy the libraries into #{plugin_path}/test/lib/ptk # write a version.yaml file to know the revision and libraries exported end desc "Decouple all the RubyGem libraries (basic environment)" task :gems => [:record, :controller, :mailer] do end desc "Decouple the PTK test helpers" task :helpers => [:assertions, :mocks, :performance] do end desc "Decouple the ActiveRecord library" task :record do # copy the active_record library # write a version.yaml end desc "Decouple the ActionController library" task :controller do # copy the action_controller library # write a version.yaml end desc "Decouple the ActionMailer library" task :mailer do # copy the action_mailer library # write a version.yaml end # protected task :version do # write a version yaml end end