From e61b15b9d53545c01f03948227616a594747204b Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Sun, 30 Nov 2008 01:06:54 -0800 Subject: [PATCH] Removed the requirement of having rspec and rspec-rails plugins installed in favor of using the gems. --- Rakefile | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Rakefile b/Rakefile index bc85c7d..a2613fe 100755 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,8 @@ #!/usr/bin/env ruby require "fileutils" +require 'rubygems' +gem 'rspec' +gem 'rspec-rails' Dir[File.expand_path(File.dirname(__FILE__)) + "/lib/tasks/**/*.rake"].sort.each { |ext| load ext } @@ -8,17 +11,10 @@ PLUGIN_ROOT = File.expand_path(File.dirname(__FILE__)) REDMINE_APP = File.expand_path(File.dirname(__FILE__) + '/../../../app') REDMINE_LIB = File.expand_path(File.dirname(__FILE__) + '/../../../lib') -# In rails 1.2, plugins aren't available in the path until they're loaded. -# Check to see if the rspec plugin is installed first and require -# it if it is. If not, use the gem version. -rspec_base = File.expand_path(File.dirname(__FILE__) + '/../rspec/lib') -$LOAD_PATH.unshift(rspec_base) if File.exist?(rspec_base) - require 'rake' require 'rake/clean' require 'rake/rdoctask' require 'spec/rake/spectask' -require 'spec/translator' PROJECT_NAME = 'budget_plugin' ZIP_FILE = PROJECT_NAME + ".zip"