vagrant/tasks/test.rake

20 lines
469 B
Ruby
Raw Normal View History

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"
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__)
t.pattern = "test/acceptance/**/*_test.rb"
end
end