Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
35 lines (28 sloc) 703 Bytes
require 'rake/testtask'
require 'yard'
task :default => [:'']
desc "Run all tests"
task :'' do
test_task = Rake::TestTask.new("alltests") do |t|
t.test_files = Dir.glob(File.join("test", "**", "*_test.rb"))
end
task("alltests").execute
end
namespace :test do
desc "Run models tests"
task :models do
ruby "test/models/*_test.rb"
end
desc "Run routes tests"
task :routes do
ruby "test/routes/*_test.rb"
end
desc "Run acceptance tests"
task :acceptance do
ruby "test/acceptance/*_test.rb"
end
end
YARD::Rake::YardocTask.new do |t|
t.files = ['app.rb', '**/helpers/*.rb', '**/routes/*.rb', '**/models/*.rb']
t.options = ['--protected', '--private']
end