8 require 'spec/rake/spectask'
11 To use rspec for testing you must install rspec gem:
17 desc "Run the specs under spec/models"
18 Spec::Rake::SpecTask.new do |t|
19 t.spec_opts = ['--options', "spec/spec.opts"]
20 t.spec_files = FileList['spec/*_spec.rb']
26 require File.join(File.dirname(__FILE__), '..', 'spec', 'rspec_autotest')
30 desc "run specs with rcov"
31 Spec::Rake::SpecTask.new(:rcov) do |t|
32 t.spec_opts = ['--options', "spec/spec.opts"]
33 t.spec_files = FileList['spec/*_spec.rb']
35 t.rcov_dir = './doc/coverage'
36 t.rcov_opts = ['--exclude', 'spec\/spec_helper.rb,spec\/rspec_autotest.rb']
40 # desc "Default task is to run specs"
41 # task :default => :spec
42 Rake.application[:default].prerequisites.gsub! /test/, 'spec'