2010-06-08 00:45:49 +00:00
|
|
|
require "rubygems"
|
|
|
|
require "rake"
|
|
|
|
require "rake/rdoctask"
|
|
|
|
require "rspec"
|
|
|
|
require "rspec/core/rake_task"
|
2010-05-19 23:42:19 +00:00
|
|
|
|
2010-06-08 00:45:49 +00:00
|
|
|
desc 'Generate documentation for the custom_fields plugin.'
|
2010-05-19 23:42:19 +00:00
|
|
|
Rake::RDocTask.new(:rdoc) do |rdoc|
|
|
|
|
rdoc.rdoc_dir = 'rdoc'
|
2010-06-08 00:45:49 +00:00
|
|
|
rdoc.title = 'CustomFields'
|
2010-05-19 23:42:19 +00:00
|
|
|
rdoc.options << '--line-numbers' << '--inline-source'
|
|
|
|
rdoc.rdoc_files.include('README')
|
|
|
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
2010-06-08 00:45:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Rspec::Core::RakeTask.new('spec:unit') do |spec|
|
|
|
|
spec.pattern = "spec/unit/**/*_spec.rb"
|
|
|
|
# spec.pattern = "spec/unit/custom_fields_for_spec.rb"
|
2010-06-10 13:30:22 +00:00
|
|
|
# spec.pattern = "spec/unit/types/category_spec.rb"
|
2010-06-08 00:45:49 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Rspec::Core::RakeTask.new('spec:integration') do |spec|
|
|
|
|
spec.pattern = "spec/integration/**/*_spec.rb"
|
2010-06-10 13:30:22 +00:00
|
|
|
# spec.pattern = "spec/integration/types/category_spec.rb"
|
2010-06-08 00:45:49 +00:00
|
|
|
end
|
|
|
|
|
2010-06-10 13:30:22 +00:00
|
|
|
task :spec => ['spec:unit', 'spec:integration']
|
2010-06-08 00:45:49 +00:00
|
|
|
|
|
|
|
task :default => :spec
|