aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-12-04 10:39:02 +0000
committerLouise Crow <louise.crow@gmail.com>2013-12-04 10:39:02 +0000
commit65fe6b5f8c8043d795e289dabe1026a6fa5c3fd2 (patch)
tree9c95678a804d77e2daad224c049fb4c6c1e1ed4a
parent5b709d61c1c897f10d9900018fecca4c10731673 (diff)
parent656d2d1170cbcf42b8ff0f0d8321e95702636707 (diff)
Merge remote-tracking branch 'origin/restore-xapian-rake-tasks' into rails-3-develop
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 5fa2a360d..09582dd77 100644
--- a/Rakefile
+++ b/Rakefile
@@ -5,5 +5,7 @@ require File.expand_path('../config/application', __FILE__)
require 'rake'
Alaveteli::Application.load_tasks
if Rails.env == 'test'
- Dir[File.join(File.dirname(__FILE__),'commonlib','rblib','tests','*.rake')].each { |file| load(file) }
+ Dir[Rails.root.join('commonlib','rblib','tests','*.rake')].each { |file| load(file) }
end
+# Make sure the the acts_as_xapian tasks are also loaded:
+Dir[Rails.root.join('lib','acts_as_xapian','tasks','*.rake')].each { |file| load(file) }