aboutsummaryrefslogtreecommitdiffstats
path: root/Rakefile
diff options
context:
space:
mode:
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index d9a53fc69..5fa2a360d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -4,4 +4,6 @@
require File.expand_path('../config/application', __FILE__)
require 'rake'
Alaveteli::Application.load_tasks
-Dir[File.join(File.dirname(__FILE__),'commonlib','rblib','tests','*.rake')].each { |file| load(file) }
+if Rails.env == 'test'
+ Dir[File.join(File.dirname(__FILE__),'commonlib','rblib','tests','*.rake')].each { |file| load(file) }
+end