Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 33 lines (28 sloc) 0.831 kb
1282d2e Stefan Kroes Initial commit
authored
1 require 'rake'
2 require 'rake/testtask'
91bc017 Revert "Fixed it for Rails 3.2 and broke it for 2.x, changed version 1.2...
Gerjan Stokkink authored
3 require 'rake/rdoctask'
4 require 'rcov/rcovtask'
1282d2e Stefan Kroes Initial commit
authored
5
6 desc 'Default: run unit tests.'
7 task :default => :test
8
9 desc 'Test the ancestry plugin.'
10 Rake::TestTask.new(:test) do |t|
11 t.libs << 'lib'
12 t.pattern = 'test/**/*_test.rb'
13 t.verbose = true
14 end
15
91bc017 Revert "Fixed it for Rails 3.2 and broke it for 2.x, changed version 1.2...
Gerjan Stokkink authored
16 desc 'Determine test code coverage for the ancestry plugin.'
17 Rcov::RcovTask.new(:coverage) do |t|
18 t.libs << 'lib'
19 t.test_files = FileList['test/**/*_test.rb']
20 t.verbose = true
21 t.output_dir = "test/coverage"
22 t.rcov_opts << "-x /gems/,/library/"
23 end
24
1282d2e Stefan Kroes Initial commit
authored
25 desc 'Generate documentation for the ancestry plugin.'
26 Rake::RDocTask.new(:rdoc) do |rdoc|
df705c3 Stefan Kroes Version 1.1.0 done!
authored
27 rdoc.rdoc_dir = 'doc'
1282d2e Stefan Kroes Initial commit
authored
28 rdoc.title = 'Ancestry'
29 rdoc.options << '--line-numbers' << '--inline-source'
df705c3 Stefan Kroes Version 1.1.0 done!
authored
30 rdoc.rdoc_files.include('README.rdoc')
1282d2e Stefan Kroes Initial commit
authored
31 rdoc.rdoc_files.include('lib/**/*.rb')
32 end
Something went wrong with that request. Please try again.