Add spec task

This commit is contained in:
Scott Taylor 2009-12-02 02:21:19 -05:00
parent 9212ba104a
commit bd53cbaa0e

View File

@ -1,3 +1,10 @@
require 'spec/rake/spectask'
desc "Run specs"
Spec::Rake::SpecTask.new(:spec) do |t|
t.spec_files = FileList["spec/**/*.rb"]
end
desc "Run tests" desc "Run tests"
task :test do task :test do
Dir['test/**/*_test.rb'].each { |file| require file } Dir['test/**/*_test.rb'].each { |file| require file }