require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' volatile_requires = ['rcov/rcovtask'] not_loaded = [] volatile_requires.each do |file| begin require file rescue LoadError not_loaded.push file end end # ----- Default: Testing ------ desc 'Default: run unit tests.' task :default => :test desc 'Test the HAML plugin' Rake::TestTask.new(:test) do |t| t.libs << 'lib' t.pattern = 'test/**/*_test.rb' t.verbose = true end # ----- Benchmarking ----- temp_desc = <