Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

file 39 lines (33 sloc) 0.842 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 30 31 32 33 34 35 36 37 38 39
require 'rake/testtask'
Rake::TestTask.new(:test) do |test|
  test.libs << 'test'
  test.pattern = 'test/**/test_*.rb'
end

Rake::TestTask.new(:bench) do |test|
  test.libs << 'test'
  test.pattern = 'test/benchmark_test.rb'
end

begin
  require 'metric_fu'
  MetricFu::Configuration.run do |config|
    config.rcov[:rcov_opts] << "-Itest:lib"
  end
rescue LoadError
end

task :default => :test

task :test_all do
  system('rake test RAILS_VERSION="~> 3.0.0"')
  system('rake test RAILS_VERSION=">= 3.0.0"')
end

# 'gem install rdoc' to upgrade RDoc if this is giving you errors
begin
  require 'rdoc/task'
  RDoc::Task.new do |rd|
    rd.rdoc_files.include("lib/**/*.rb")
  end
rescue LoadError
  puts "Unable to load rdoc, run 'gem install rdoc' to fix this."
end

require 'rake/clean'
CLEAN.include "**/*.rbc"
CLEAN.include "**/.DS_Store"
Something went wrong with that request. Please try again.