diff options
Diffstat (limited to 'lib/tasks/testing.rake')
-rw-r--r-- | lib/tasks/testing.rake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/tasks/testing.rake b/lib/tasks/testing.rake index cfb8e77f9..d987a4882 100644 --- a/lib/tasks/testing.rake +++ b/lib/tasks/testing.rake @@ -26,7 +26,7 @@ namespace :test do namespace :scm do namespace :setup do desc "Creates directory for test repositories" - task :create_dir do + task :create_dir => :environment do FileUtils.mkdir_p Rails.root + '/tmp/test' end @@ -66,7 +66,7 @@ namespace :test do end desc "Updates installed test repositories" - task :update do + task :update => :environment do require 'fileutils' Dir.glob("tmp/test/*_repository").each do |dir| next unless File.basename(dir) =~ %r{^(.+)_repository$} && File.directory?(dir) |