| Kevin Clark | 5a7103a | 2008-06-18 00:55:11 +0000 | [diff] [blame] | 1 | require 'rubygems' | 
|  | 2 | require 'rake' | 
|  | 3 | require 'spec/rake/spectask' | 
|  | 4 |  | 
| Kevin Clark | c2a07b1 | 2008-06-18 00:57:06 +0000 | [diff] [blame] | 5 | task :default => [:spec, :test] | 
| Kevin Clark | 5a7103a | 2008-06-18 00:55:11 +0000 | [diff] [blame] | 6 |  | 
|  | 7 | Spec::Rake::SpecTask.new("spec") do |t| | 
|  | 8 | t.spec_files = FileList['spec/**/*_spec.rb'] | 
|  | 9 | t.spec_opts = ['--color'] | 
|  | 10 | end | 
| Kevin Clark | c2a07b1 | 2008-06-18 00:57:06 +0000 | [diff] [blame] | 11 |  | 
|  | 12 | task :test do | 
|  | 13 | fork do | 
|  | 14 | exec 'make', '-C', File.dirname(__FILE__) + "/../../test/rb" | 
|  | 15 | end | 
|  | 16 | Process.wait | 
|  | 17 | end |