From 486059de2e5ce9c663d548f3511409948332adad Mon Sep 17 00:00:00 2001 From: Kyle Banker Date: Mon, 12 Dec 2011 15:33:14 -0500 Subject: [PATCH] minor: test fixes --- Rakefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Rakefile b/Rakefile index 273753d..69da748 100644 --- a/Rakefile +++ b/Rakefile @@ -1,11 +1,16 @@ # -*- mode: ruby; -*- -require 'rubygems' -require 'rubygems/specification' +if RUBY_VERSION < '1.9.0' + require 'rubygems' + require 'rubygems/specification' +end require 'fileutils' -require 'rake' require 'rake/testtask' -require 'rake/gempackagetask' require 'rbconfig' +require 'rake' +begin + require 'ci/reporter/rake/test_unit' + rescue LoadError +end include Config ENV['TEST_MODE'] = 'TRUE' @@ -154,7 +159,8 @@ namespace :bamboo do end namespace :test do - task :ruby => [:ci_reporter, "ci:setup:testunit"] do + task :ruby do + Rake::Task['ci:setup:testunit'] Rake::Task['test:ruby'].invoke end