jystewart / image-associations

ActiveRecord extensions to make it easier to manage attachments

This URL has Read+Write access

image-associations / Rakefile
100644 36 lines (28 sloc) 0.908 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
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'spec/spec_helper'
require 'spec/rake/spectask'
 
desc 'Generate documentation for the image_associations plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title = 'ImageAssociations'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README')
  rdoc.rdoc_files.include('lib/**/*.rb')
end
 
desc 'Default: run all specs.'
task :default => :spec
 
task :spec => ['spec:all']
 
namespace :spec do
  
  desc "Run all specs in the spec directory"
  Spec::Rake::SpecTask.new('all') do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.spec_opts = %w(--color)
  end
  
  desc "Run all specs in the spec directory in specdoc mode"
  Spec::Rake::SpecTask.new('dox') do |t|
    t.spec_files = FileList['spec/**/*_spec.rb']
    t.spec_opts = %w(--color -f specdoc)
  end
  
end