Permalink
Browse files

make spec to spectask, to work nicely with CI server

  • Loading branch information...
1 parent 5395c6c commit b33d4520dfcd9b88e7fe7883a81cc000cece2eb8 @grosser committed Nov 17, 2009
Showing with 4 additions and 6 deletions.
  1. +3 −6 Rakefile
  2. +1 −0 spec/spec_helper.rb
View
@@ -1,12 +1,9 @@
require 'rake'
require 'rake/rdoctask'
-desc "Run all specs in spec directory"
-task :default do
- options = "--colour --format progress --loadby --reverse"
- files = FileList['spec/**/*_spec.rb']
- system("spec #{options} #{files}")
-end
+task :default => :spec
+require 'spec/rake/spectask'
+Spec::Rake::SpecTask.new {|t| t.spec_opts = ['--color']}
desc 'Generate documentation for the acts_as_redeemable plugin.'
Rake::RDocTask.new(:rdoc) do |rdoc|
View
@@ -1,3 +1,4 @@
+require 'rubygems'
$LOAD_PATH << "lib"
require "init"
require "spec/setup_test_model"

0 comments on commit b33d452

Please sign in to comment.