# In rails 1.2, plugins aren't available in the path until they're loaded.
# Check to see if the rspec plugin is installed first and require
# it if it is. If not, use the gem version.
rspec_base =File.expand_path(File.dirname(__FILE__)+'/../../vendor/plugins/rspec/lib')$LOAD_PATH.unshift(rspec_base)ifFile.exist?(rspec_base)require'spec/rake/spectask'require'spec/translator'
namespace :specdo
desc "Print HTML documentation of spec"Spec::Rake::SpecTask.new(:html_doc)do |t|
t.spec_opts =["--format","html:spec/report.html","--dry-run"]
t.spec_files =FileList['spec/**/*_spec.rb']endend