2011-11-13 20:37:04 +00:00
|
|
|
require 'rake/testtask'
|
|
|
|
require 'rspec/core/rake_task'
|
|
|
|
|
|
|
|
namespace :test do
|
2013-12-04 02:42:21 +00:00
|
|
|
RSpec::Core::RakeTask.new(:unit) do |t|
|
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
|
|
|
|
|
2013-12-04 02:42:21 +00:00
|
|
|
RSpec::Core::RakeTask.new(:acceptance) do |t|
|
2013-12-05 21:19:15 +00:00
|
|
|
$: << File.expand_path("../test/acceptance", __FILE__)
|
2011-11-13 20:37:04 +00:00
|
|
|
t.pattern = "test/acceptance/**/*_test.rb"
|
|
|
|
end
|
|
|
|
end
|