require 'rubygems' | |
require 'rake' | |
require 'spec/rake/spectask' | |
task :default => [:spec, :test] | |
Spec::Rake::SpecTask.new("spec") do |t| | |
t.spec_files = FileList['spec/**/*_spec.rb'] | |
t.spec_opts = ['--color'] | |
end | |
task :test do | |
fork do | |
exec 'make', '-C', File.dirname(__FILE__) + "/../../test/rb" | |
end | |
Process.wait | |
end |