diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-05-14 06:10:23 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-05-14 06:10:23 +0000 |
commit | 1c60fc065552eccd61aeb09a1feb96ddfe061744 (patch) | |
tree | 65e104114f854c85fde052ff4425258a00279130 | |
parent | 868e15ff2de6033b84770778dbde96cf61ad61d2 (diff) | |
download | redmine-1c60fc065552eccd61aeb09a1feb96ddfe061744.tar.gz redmine-1c60fc065552eccd61aeb09a1feb96ddfe061744.zip |
add :environment to test:scm:setup:create_dir and test:scm:update rake tasks (#16881)
git-svn-id: http://svn.redmine.org/redmine/trunk@13135 e93f8b46-1217-0410-a6f0-8f06a7374b81
-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) |