2011-11-13 20:37:04 +00:00
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
|
|
|
|
namespace :test do
|
2011-12-06 02:35:59 +00:00
|
|
|
RSpec::Core::RakeTask.new do |t|
|
2011-11-13 20:37:04 +00:00
|
|
|
t.name = "unit"
|
2011-12-06 02:35:59 +00:00
|
|
|
t.pattern = "test/unit/**/*_test.rb"
|
|
|
|
end
|
|
|
|
|
|
|
|
Rake::TestTask.new do |t|
|
|
|
|
t.name = "unit_old"
|
2011-12-03 23:44:57 +00:00
|
|
|
t.libs << "test/unit_legacy"
|
|
|
|
t.pattern = "test/unit_legacy/**/*_test.rb"
|
2011-11-13 20:37:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
RSpec::Core::RakeTask.new do |t|
|
|
|
|
t.name = "acceptance"
|
|
|
|
t.pattern = "test/acceptance/**/*_test.rb"
|
|
|
|
end
|
|
|
|
end
|